tazwok diff tazwok @ rev 70

add md5sum in .tazpkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 26 19:41:56 2008 +0000 (2008-06-26)
parents 4969ba58840f
children 7e213a12d8ca
line diff
     1.1 --- a/tazwok	Mon Jun 16 19:36:17 2008 +0000
     1.2 +++ b/tazwok	Thu Jun 26 19:41:56 2008 +0000
     1.3 @@ -464,6 +464,14 @@
     1.4  		LAST_FILE="$file"
     1.5  	done > files.list
     1.6  	status
     1.7 +	echo -n "Creating md5sum of files..."
     1.8 +	while read file; do
     1.9 +		[ -L "$file" ] && continue
    1.10 +		[ -f "$file" ] || continue
    1.11 +		md5sum "$file"
    1.12 +	done < files.list > md5sum
    1.13 +	status
    1.14 +	[ -s md5sum ] || rm -f md5sum
    1.15  	UNPACKED_SIZE=$(du -hs . | awk '{ print $1 }')
    1.16  	# Build cpio archives. Find, cpio and gzip the fs, finish by
    1.17  	# removing the fs tree.