From bc81766556fc7d9fa7c07a9291eb968747938711 Mon Sep 17 00:00:00 2001 From: scarab Date: Sun, 17 Aug 2008 17:52:23 +0000 Subject: - server instaloval zbytecne data - uprava authors (muj mejl a jabber) - build.sh vypisuje vic informaci o tom co provedl git-svn-id: http://opensvn.csie.org/tuxanci_ng@218 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- packaging/linux/build.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'packaging') diff --git a/packaging/linux/build.sh b/packaging/linux/build.sh index d6d7bf8..43a642e 100755 --- a/packaging/linux/build.sh +++ b/packaging/linux/build.sh @@ -24,8 +24,7 @@ fi VERSION="9999" ARCH="64b" SVN_REV="" -while getopts v:a:r: arg -do +while getopts v:a:r: arg ; do case $arg in v) VERSION=${OPTARG};; a) ARCH=${OPTARG};; @@ -71,13 +70,13 @@ if [[ ${Y} == "server" ]]; then CMAKE_PARAMS="${CMAKE_PARAMS} -DServer=1" fi cd "${SOURCE}" +rm CMakeCache.txt || ( echo "I was unable to cleanup CMakeCache.txt"; exit 1; ) +make clean >> "${LOG}" cmake . ${CMAKE_PARAMS} >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 ) make >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 ) make install DESTDIR="${D}_${Y}_${VERSION}-${ARCH}/" >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 ) cd "${D}"_"${Y}"_"${VERSION}"-"${ARCH}"/ -`which strip` --strip-unneeded lib/tuxanci/* bin/* -rm CMakeCache.txt || ( echo "I was unable to cleanup CMakeCache.txt"; exit 1; ) -make clean +`which strip` --strip-unneeded lib/tuxanci/* bin/* >> "${LOG}" done ############################################################################### # DESTRUCTION OF SRC @@ -89,13 +88,13 @@ rm -rf "${SOURCE}" ############################################################################### echo "" echo "<******************************>" -for Y in ${OPTIONS}; do +for Y in ${OPTIONS} ; do tar cjf "${APPNAME}"_"${Y}"_"${VERSION}"-"${ARCH}".tar.bz2 "${APPNAME}"_"${Y}"_${VERSION}-"${ARCH}"/* done ############################################################################### # DESTRUCTION OF UNPACKED BINARIES ############################################################################### -for Y in ${OPTIONS}; do +for Y in ${OPTIONS} ; do rm -rf "${APPNAME}"_"${Y}"_${VERSION}-"${ARCH}"/ done ############################################################################### @@ -103,7 +102,13 @@ done ############################################################################### echo "" echo "<******************************>" -find ./ -maxdepth 1 -type f -print +find ./ -maxdepth 1 -type f -name \*.tar.bz2 -print | while read FILE ; do + echo "FILE: ${FILE}" + echo " SIZE: $(`which du` -h ${FILE} |`which awk` -F' ' '{print $1}')" + echo " MD5SUM: $(`which md5sum` ${FILE} |`which awk` -F' ' '{print $1}')" + echo " SHA1SUM: $(`which sha1sum` ${FILE} |`which awk` -F' ' '{print $1}')" + echo +done echo echo echo "" -- cgit v1.2.3