From: lxoliva Date: Tue, 27 Nov 2012 12:28:42 +0000 (+0000) Subject: Sign uncompressed vcdiff and xdelta X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2565125bb28de3610a4990721127107c62113c13;p=releases.git Sign uncompressed vcdiff and xdelta git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@9253 559672b5-ba27-0410-b829-e8f1faed8b1b --- diff --git a/deblob-main b/deblob-main index 63d0c9325b5..3a85cdc9630 100755 --- a/deblob-main +++ b/deblob-main @@ -271,35 +271,35 @@ xdelta3 -e -9 -S djw -s linux-$kver.tar linux-libre-$kver-$gnu.tar linux-libre-$ echo Creating xdelta between linux-$kver.tar and linux-libre-$kver-$gnu.tar xdelta delta -0 linux-$kver.tar linux-libre-$kver-$gnu.tar linux-libre-$kver-$gnu.xdelta || : # xdelta returns nonzero on success +cleanup="linux-libre-$kver-$gnu.tar linux-libre-$kver-$gnu.vcdiff linux-libre-$kver-$gnu.xdelta" + echo Compressing binary deltas and linux-libre-$kver-$gnu.tar rm -f linux-$kver.tar if test -f linux-libre-$kver-$gnu.vcdiff; then bzip2 -k9 linux-libre-$kver-$gnu.vcdiff xz -k9 linux-libre-$kver-$gnu.vcdiff || : lzip -k9 linux-libre-$kver-$gnu.vcdiff || : - rm -f linux-libre-$kver-$gnu.vcdiff fi if test -f linux-libre-$kver-$gnu.xdelta; then bzip2 -k9 linux-libre-$kver-$gnu.xdelta xz -k9 linux-libre-$kver-$gnu.xdelta || : lzip -k9 linux-libre-$kver-$gnu.xdelta || : - rm -f linux-libre-$kver-$gnu.xdelta fi bzip2 -k9 linux-libre-$kver-$gnu.tar xz -k9 linux-libre-$kver-$gnu.tar || : lzip -k9 linux-libre-$kver-$gnu.tar || : -cleanup=linux-libre-$kver-$gnu.tar - echo Done except for signing, feel free to interrupt for f in \ linux-libre-$kver-$gnu.tar \ linux-libre-$kver-$gnu.tar.bz2 \ linux-libre-$kver-$gnu.tar.xz \ linux-libre-$kver-$gnu.tar.lz \ + linux-libre-$kver-$gnu.vcdiff \ linux-libre-$kver-$gnu.vcdiff.bz2 \ linux-libre-$kver-$gnu.vcdiff.xz \ linux-libre-$kver-$gnu.vcdiff.lz \ + linux-libre-$kver-$gnu.xdelta \ linux-libre-$kver-$gnu.xdelta.bz2 \ linux-libre-$kver-$gnu.xdelta.xz \ linux-libre-$kver-$gnu.xdelta.lz \ @@ -310,8 +310,7 @@ for f in \ fi done -rm -f linux-libre-$kver-$gnu.tar - +rm -f $cleanup cleanup= trap 'status=$?; (exit $status); exit' 0 1 2 15