projects
/
git-tools-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove empty tmp.tar if nominated git tag doesn't exist.
[git-tools-moved-to-github.git]
/
id-deb-build
/
mkdist.sh
diff --git
a/id-deb-build/mkdist.sh
b/id-deb-build/mkdist.sh
index
1dec8ea
..
4fbee88
100755
(executable)
--- a/
id-deb-build/mkdist.sh
+++ b/
id-deb-build/mkdist.sh
@@
-37,6
+37,7
@@
if [ "x$1" != x ]; then
VERSION=$1
fi
+trap 'rm -f tmp.tar' 0
git archive --format=tar --prefix=$NAME-$VERSION/ v${VERSION} > tmp.tar || die "This version is not tagged in Git";
tar xf tmp.tar
rm tmp.tar