3 # Copied from cclive project (2011-01-07).
5 # This script will commit ChangeLog temporarily so that git-archive
6 # picks the updated ChangeLog to the tarball.
13 Please note that this script will call git-reset (--hard) during
14 this process so be sure to commit your changes before you run this
17 Last chance to bail out (CTRL-C) before we call 'git reset --hard'."
20 descr
=`git describe $branch`
21 basename="$project-$descr"
22 tarball
="$basename.tar.gz"
24 echo ":: Generate $tarball"
27 git log
--stat >ChangeLog
&& \
28 git commit
-q ChangeLog
-m "Generate $tarball" && \
29 git archive
$branch --prefix="$basename/" |
gzip >$tarball && \
30 git
reset -q --hard HEAD~
1