Update Finnish translation (Preferences ln ch)
[nomnom.git] / scripts / makedist.sh
blob845d362eb72aa58d0fc9d62e0dd07dc764b4cb60
1 #!/bin/sh
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.
8 project=nomnom
9 branch=master
11 echo "WARNING!
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
15 script.
17 Last chance to bail out (CTRL-C) before we call 'git reset --hard'."
18 read -s -n1
20 descr=`git describe $branch`
21 basename="$project-$descr"
22 tarball="$basename.tar.gz"
24 echo ":: Generate $tarball"
26 # TODO: Elegant way.
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