compat-drivers: update gen-stable-release.sh to make bzip2 again
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 20 Sep 2012 21:42:12 +0000 (14:42 -0700)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 20 Sep 2012 21:42:12 +0000 (14:42 -0700)
The kernel uploader expects you to sign the tar file but you can
pass along and upload a bzip2 archive. At the other end the
daemon will uncompress and then verify the tarball.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
scripts/gen-stable-release.sh

index f486bd1920d29cab88a93a5e9edda76bbeb637a1..fbe00baa15c9f69f2e941123beb1b0ed72da491e 100755 (executable)
@@ -203,16 +203,21 @@ cd $STAGING/
 
 echo "Creating ${RELEASE}.tar ..."
 tar -cf ${RELEASE}.tar $RELEASE/
+bzip2 -9 ${RELEASE}.tar
+
+# kup allows us to upload a compressed archive but wants us
+# to sign the tarball alone, it will uncompress the
+# compressed tarball, verify the tarball and then re-compress
+# the tarball.
 gpg --armor --detach-sign ${RELEASE}.tar
 
 # XXX: Add this for daily / stable release:
-# kup put ${RELEASE}.tar ${RELEASE}.tar.asc /pub/linux/kernel/projects/backports/2012/09/18/
-# kup put ${RELEASE}.tar ${RELEASE}.tar.asc /pub/linux/kernel/projects/backports/2012/09/18/
+# kup put ${RELEASE}.tar.bz2 ${RELEASE}.tar.asc /pub/linux/kernel/projects/backports/2012/09/18/
 
 echo
 echo "compat-drivers release: $RELEASE"
-echo "Size: $(du -h ${RELEASE}.tar)"
-echo "sha1sum: $(sha1sum ${RELEASE}.tar)"
+echo "Size: $(du -h ${RELEASE_TAR})"
+echo "sha1sum: $(sha1sum ${RELEASE_TAR})"
 echo
-echo "Release:           ${STAGING}${RELEASE}.tar"
+echo "Release:           ${STAGING}${RELEASE_TAR}"
 echo "Release signature: ${STAGING}${RELEASE}.tar.asc"