cookutils diff cookiso @ rev 874
modules/compressor: fix compress_manpages(): when there's a lot of manpages (like in openssl package), it found (in the second turn) some of just compressed manpages and compress them again (*.gz.gz)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 28 13:01:27 2017 +0200 (2017-01-28) |
parents | a328952982d6 |
children | 63fb59f6fd67 |
line diff
1.1 --- a/cookiso Tue Nov 17 01:23:50 2015 +0200 1.2 +++ b/cookiso Sat Jan 28 13:01:27 2017 +0200 1.3 @@ -124,7 +124,12 @@ 1.4 name="slitaz-$string" 1.5 fi 1.6 log="$iso/$name.log" 1.7 - rm -f $log; touch $log 1.8 + for i in $(seq 9 -1 1); do # Rotate log 1.9 + j=$(($i - 1)) 1.10 + [ -e $log.$j ] && mv -f $log.$j $log.$i 1.11 + done 1.12 + [ -e $log ] && mv $log $log.0 1.13 + touch $log 1.14 echo "Building $string <a href='?distro=$string-$flavor'>$flavor</a>" | log 1.15 echo "Cookiso started: $(date '+%F %R')" | tee -a $log 1.16 tazlito pack-flavor $flavor | tee -a $log 1.17 @@ -153,7 +158,7 @@ 1.18 for flavor in $flavors; do 1.19 distro="slitaz-${string}-$flavor" 1.20 file="${distro%-core-4in1}" 1.21 - rsync $BWLIMIT -vtP -e "$SSH_CMD" $iso/$file.* \ 1.22 + rsync $BWLIMIT -vtP -e "$SSH_CMD" $iso/$file.??? \ 1.23 ${SSH_HOST}:$SSH_ISO/$string 2>&1 | tee $synclog 1.24 done 1.25 }