Buildsystem: generate image md5sums.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 1 Jan 2011 10:40:19 +0000 (11:40 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 1 Jan 2011 10:40:19 +0000 (11:40 +0100)
./make.sh clean remove also the images.
fix checknewlog if workdir is not basedir.

.gitignore
make.sh

index ed6c767..0215a60 100644 (file)
@@ -11,3 +11,4 @@
 *.img.gz
 *.iso
 *.tar.bz2
+/*.md5
diff --git a/make.sh b/make.sh
index 9817aab..69f502f 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -762,6 +762,12 @@ buildpackages() {
   fi
   mv $LFS/install/images/*.bz2 $BASEDIR >> $LOGFILE 2>&1
 
+  cd $BASEDIR
+  for i in `ls *.bz2 *.img.gz *.iso`; do
+       md5sum $i > $i.md5
+  done
+  cd $PWD
+
   # Cleanup
   stdumount
   rm -rf $BASEDIR/build/tmp/*
@@ -838,8 +844,10 @@ build)
        buildpackages
        
        beautify build_stage "Checking Logfiles for new Files"
-       cd ..
+
+       cd $BASEDIR
        tools/checknewlog.pl
+       cd $PWD
 
        beautify build_end
        ;;
@@ -871,6 +879,7 @@ clean)
        if [ -h /tools ]; then
                rm -f /tools
        fi
+       rm -f $BASEDIR/ipfire-*
        beautify message DONE
        ;;
 downloadsrc)