From 52823418a2a334c15f9a06f5ac376e9ba6e2220a Mon Sep 17 00:00:00 2001 From: lxoliva Date: Sun, 18 May 2008 23:48:18 +0000 Subject: [PATCH] Fix removal of modified files from tarball. Handle top-level files. Add deblob* scripts to the tarball. Compress the xdelta. git-svn-id: http://www.fsfla.org/svn/fsfla/software/linux-libre/scripts@3549 559672b5-ba27-0410-b829-e8f1faed8b1b --- deblob-main | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/deblob-main b/deblob-main index 3d8d5f5192b..12e5374e166 100755 --- a/deblob-main +++ b/deblob-main @@ -163,14 +163,16 @@ echo Deblobbing within linux-$kver-$libre (cd linux-$kver-$libre && /bin/sh ../$deblob) rm -f linux-$kver-$libre.patch +cp $0 $deblob deblob-check linux-$kver-$libre + echo Generating linux-$kver-$libre.patch diff -druN linux-$kver linux-$kver-$libre > linux-$kver-$libre.patch echo Removing removed or modified files from linux-$kver-$libre.tar diff -rq linux-$kver linux-$kver-$libre | sed -n " - s,^Only in \(linux-$kver/.*\): \(.*\),\1/\2,p; - s,^Files \(linux-$kver/.*\) and libre-\1 differ,\1,p; + s,^Only in \(linux-$kver/\?.*\): \(.*\),\1/\2,p; + s,^Files \(linux-$kver\)/\(.*\) and \1-$libre/\2 differ,\1/\2,p; " | xargs tar --delete -f linux-$kver-$libre.tar @@ -181,7 +183,7 @@ mv linux-$kver-$libre linux-$kver diff -rq orig-linux-$kver linux-$kver | sed -n " s,^Files orig-\(linux-$kver/.*\) and \1 differ,\1,p; - s,^Only in \(linux-$kver/.*\): \(.*\),\1/\2,p; + s,^Only in \(linux-$kver/?.*\): \(.*\),\1/\2,p; " | xargs tar --append -f linux-$kver-$libre.tar @@ -191,9 +193,9 @@ rm -rf linux-$kver orig-linux-$kver echo Creating xdelta between linux-$kver.tar and linux-$kver-$libre.tar xdelta delta -0 linux-$kver.tar linux-$kver-$libre.tar linux-$kver-$libre.xdelta -echo Compressing linux-$kver-$libre.tar +echo Compressing linux-$kver-$libre.tar and linux-$kver-$libre.xdelta rm -f linux-$kver.tar -bzip2 -9 linux-$kver-$libre.tar +bzip2 -9 linux-$kver-$libre.tar linux-$kver-$libre.xdelta trap "status=$?; (exit $status); exit" 0 1 2 15 @@ -201,6 +203,9 @@ echo Done except for signing, feel free to interrupt gpg -a --detach-sign linux-$kver-$libre.tar.bz2 mv linux-$kver-$libre.tar.bz2.asc linux-$kver-$libre.tar.bz2.sign +gpg -a --detach-sign linux-$kver-$libre.xdelta.bz2 +mv linux-$kver-$libre.xdelta.bz2.asc linux-$kver-$libre.xdelta.bz2.sign + echo All set, please review linux-$kver-$libre.patch exit 0 -- 2.31.1