[PATCH] beautify generated tarballs.

Reinhard Tartler siretart at tauware.de
Sat Mar 7 15:15:48 UTC 2009


let the toplevel directory names in the orig.tar.gz contain the upstream
svn revision that was packaged. This makes working with the tarballs
without dpkg-source easier.
---
 debian/get-orig-source.sh |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
index 632e320..0332269 100644
--- a/debian/get-orig-source.sh
+++ b/debian/get-orig-source.sh
@@ -101,12 +101,13 @@ done
 # have this directory renamed as well.
 ( cd ${TMPDIR}/${PACKAGENAME} && rm -rfv debian )
 
+( cd ${TMPDIR}/ && mv ${PACKAGENAME}-${SVNDATE}
 
-tar czf ${TARBALL_UNSTRIPPED} -C ${TMPDIR} ${PACKAGENAME}
+tar czf ${TARBALL_UNSTRIPPED} -C ${TMPDIR} ${PACKAGENAME}-${SVNDATE}
 	
-( cd ${TMPDIR}/${PACKAGENAME} && sh ${CLEANUPSCRIPT} )
+( cd ${TMPDIR}/${PACKAGENAME}-${SVNDATE} && sh ${CLEANUPSCRIPT} )
 
-tar czf ${TARBALL} -C ${TMPDIR} ${PACKAGENAME}
+tar czf ${TARBALL} -C ${TMPDIR} ${PACKAGENAME}-${SVNDATE}
 
 # print diff
 ( cd ${TMPDIR} && ptardiff ${TARBALL_UNSTRIPPED} ) | tee ${TARBALL}.diff


PS: the patches have been generated with git-format-patch(1) and are in
my local repository, but I didn't push yet in order to give you (and the
rest of pkg-multimedia) the oppurtunity to object to them before pushing
them. Changes to get-orig-tar.sh are a bit annoying because after
changes here I need to regenerate the tarballs, import them to the
pristine-tar branch, update the upstream branch and merge that back to
master. so I'd like to get that them right in the first place.

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4



More information about the pkg-multimedia-maintainers mailing list