X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=tools%2Fmake-functions;h=00d7d337cd6eab53c2274b270e9c483106176672;hp=62f33115d596a8bf0d48f6e3d0ce023163b52ea7;hb=b7202d9446b5afdac94d1f91a7e0a45804a0cc35;hpb=5ad5a6bcd654f9db982135f6c3ccc8352a2afa87 diff --git a/tools/make-functions b/tools/make-functions index 62f33115d5..00d7d337cd 100644 --- a/tools/make-functions +++ b/tools/make-functions @@ -142,7 +142,13 @@ beautify() ;; build_end) BUILD_TIME_END=`date +%s` - echo -ne "${DONE}***Build is finished now and took $[ $BUILD_TIME_END - $BUILD_TIME_START ] secs!${NORMAL}\n" + seconds=$[ $BUILD_TIME_END - $BUILD_TIME_START ] + hours=$((seconds / 3600)) + seconds=$((seconds % 3600)) + minutes=$((seconds / 60)) + seconds=$((seconds % 60)) + + echo -ne "${DONE}***Build is finished now and took $hours hour(s) $minutes minute(s) $seconds second(s)!${NORMAL}\n" ;; make_pkg) echo "$2" | while read PKG_VER PROGRAM OPTIONS @@ -391,6 +397,7 @@ ipfiremake() { TERM=$TERM PS1='\u:\w\$ ' \ PATH=/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin \ VERSION=$VERSION \ + CORE=$CORE \ CONFIG_ROOT=$CONFIG_ROOT \ NAME="$NAME" SNAME="$SNAME" SLOGAN="$SLOGAN" \ CFLAGS="$C2FLAGS" CXXFLAGS="$CXX2FLAGS" \ @@ -486,19 +493,20 @@ batch_script() { if [ "$IPFIRE_REBUILD" -eq "0" ]; then export IPFIRE_START_TIME=`date` + + $0 clean evaluate 1 - echo "### RUNNING SVN-UPDATE" - $0 svn update - evaluate 1 mail_me SVNUPDATE + $0 git update --force + evaluate 1 mail_me UPDATE echo "### EXPORT SOURCES" - $0 svn dist - evaluate 1 mail_me SVNDIST + $0 git dist + evaluate 1 mail_me DIST fi echo "### RUNNING BUILD" - $0 build #--devel + $0 build evaluate 1 mail_me ERROR echo "### UPLOADING ISO" @@ -526,8 +534,8 @@ mail_me() { case "$1" in success) cat <> /tmp/ipfire_mail_body.$$ -Subject: SUCCESS: IPFIRE-BUILD R$SVN_REVISION on `hostname` -Building IPFire on `hostname` in Revision $SVN_REVISION was successfull! +Subject: SUCCESS: IPFIRE-BUILD on `hostname` +Building IPFire on `hostname` was successfull! You can find the ISO on your ftp server if you told the script where it is. Statistics: @@ -543,7 +551,7 @@ END ;; *) cat <> /tmp/ipfire_mail_body.$$ -Subject: ERROR $1: IPFIRE-BUILD R$SVN_REVISION on `hostname` +Subject: ERROR $1: IPFIRE-BUILD on `hostname` When I was building IPFire on `hostname`, I have found an ERROR with name $1! Here you can see the logs and detect the reason for this error.