# HG changeset patch # User Pascal Bellard # Date 1198192287 -3600 # Node ID d8154d33d3e2c677c9bb477a9b2bc48dd8b5fd0d # Parent 3cee15956bd9a75c626e2f113c9161b874f6d63a Fix files.list creation diff -r 3cee15956bd9 -r d8154d33d3e2 tazwok --- a/tazwok Sat Dec 15 11:06:52 2007 +0000 +++ b/tazwok Fri Dec 21 00:11:27 2007 +0100 @@ -294,26 +294,21 @@ fi # Creat the files.list by redirecting find outpout. echo -n "Creating the list of files..." - cd taz/$PACKAGE-$VERSION/fs - ALL_FILES="$(find . -print)" + cd taz/$PACKAGE-$VERSION LAST_FILE="" - FILES_LIST="" - for i in $FILES_LIST; do + ( find fs -print; echo ) | while read file; do if [ "$LAST_FILE" != "" ]; then - case "$i" in + case "$file" in $LAST_FILE/*) - case "$(ls -ld \"$LAST_FILE\")" in - drwxr-xr-x\ *\ root\ root\ *);; - *) FILES_LIST="$FILES_LIST '${LAST_FILE#fs}'";; + case "$(ls -ld "$LAST_FILE")" in + drwxr-xr-x\ *\ root\ *\ root\ *);; + *) echo ${LAST_FILE#fs};; esac;; - *) FILES_LIST="$FILES_LIST '${LAST_FILE#fs}'";; + *) echo ${LAST_FILE#fs};; esac fi - LAST_FILE=$i - done - FILES_LIST="$FILES_LIST '${LAST_FILE#fs}'" - cd .. - eval 'for i in' $FILES_LIST '; do echo $i; done' > ../files.list + LAST_FILE="$file" + done > files.list status # Build cpio archives. Find, cpio and gzip the fs, finish by # removing the fs tree.