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