From a9e10b44a67400a4539abb7c969852c42dfd6d67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Tue, 17 Mar 2009 10:35:04 +0100 Subject: [PATCH] Optimize creation of orig.tar.gz a bit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Checking out the tag isn't necessary. Signed-off-by: Uwe Kleine-König --- debian/HOWTO-tg2quilt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/debian/HOWTO-tg2quilt b/debian/HOWTO-tg2quilt index f3078b6..b5d47b7 100644 --- a/debian/HOWTO-tg2quilt +++ b/debian/HOWTO-tg2quilt @@ -132,13 +132,10 @@ the Debian-standard package_version.orig.tar.gz convention first. If upstream does not provide tarballs, you can create the orig.tar.gz file and commit is as follows: -1. git checkout topgit-$VERSION -2. git archive --prefix=$(git describe HEAD)/ --verbose HEAD \ - | gzip -9 > ../$(git describe HEAD | sed s,-,_,).orig.tar.gz -3. pristine-tar commit ../$(git describe HEAD | sed s,-,_,).orig.tar.gz \ - HEAD -4. git checkout master - +1. upstream_tag="topgit-$VERSION" +2. git archive --prefix="$upstream_tag/" "$upstream_tag" | + gzip -9 > ../"${upstream_tag//-/_}.orig.tar.gz" +3. pristine-tar commit ../"${upstream_tag//-/_}.orig.tar.gz" "$upstream_tag" All comments and suggestions are welcome, especially those pertaining to -- 2.30.2