tazwok rev 15
Fix files.list creation
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 21 00:11:27 2007 +0100 (2007-12-21) |
parents | 3cee15956bd9 |
children | cb683a1ada12 |
files | tazwok |
line diff
1.1 --- a/tazwok Sat Dec 15 11:06:52 2007 +0000 1.2 +++ b/tazwok Fri Dec 21 00:11:27 2007 +0100 1.3 @@ -294,26 +294,21 @@ 1.4 fi 1.5 # Creat the files.list by redirecting find outpout. 1.6 echo -n "Creating the list of files..." 1.7 - cd taz/$PACKAGE-$VERSION/fs 1.8 - ALL_FILES="$(find . -print)" 1.9 + cd taz/$PACKAGE-$VERSION 1.10 LAST_FILE="" 1.11 - FILES_LIST="" 1.12 - for i in $FILES_LIST; do 1.13 + ( find fs -print; echo ) | while read file; do 1.14 if [ "$LAST_FILE" != "" ]; then 1.15 - case "$i" in 1.16 + case "$file" in 1.17 $LAST_FILE/*) 1.18 - case "$(ls -ld \"$LAST_FILE\")" in 1.19 - drwxr-xr-x\ *\ root\ root\ *);; 1.20 - *) FILES_LIST="$FILES_LIST '${LAST_FILE#fs}'";; 1.21 + case "$(ls -ld "$LAST_FILE")" in 1.22 + drwxr-xr-x\ *\ root\ *\ root\ *);; 1.23 + *) echo ${LAST_FILE#fs};; 1.24 esac;; 1.25 - *) FILES_LIST="$FILES_LIST '${LAST_FILE#fs}'";; 1.26 + *) echo ${LAST_FILE#fs};; 1.27 esac 1.28 fi 1.29 - LAST_FILE=$i 1.30 - done 1.31 - FILES_LIST="$FILES_LIST '${LAST_FILE#fs}'" 1.32 - cd .. 1.33 - eval 'for i in' $FILES_LIST '; do echo $i; done' > ../files.list 1.34 + LAST_FILE="$file" 1.35 + done > files.list 1.36 status 1.37 # Build cpio archives. Find, cpio and gzip the fs, finish by 1.38 # removing the fs tree.