Add some more tests of "stg status" output
[stgit/ydirson.git] / contrib / release / snapshot.sh
bloba81df52211476a8535e6f8ba9f2bb5cbf2a2017e
1 #!/bin/sh
3 # Builds a daily snapshot
5 VERSION=`date "+%Y%m%d"`
6 SNAPSHOT=dist/stgit-$VERSION.tar.gz
8 git-rev-list --pretty HEAD > ChangeLog
10 mv stgit/version.py stgit/version.py-
11 echo "version = '$VERSION'" > stgit/version.py
13 rm -f MANIFEST
14 python setup.py sdist
16 rm stgit/version.py
17 mv stgit/version.py- stgit/version.py
19 # Upload
20 lftp ftp://your-ftp-site/stgit/snapshots -u username,password -e " \
21 set ftp:list-empty-ok yes; \
22 echo Uploading $SNAPSHOT; \
23 put $SNAPSHOT; \
24 exit"