stgit.el: Add numeric prefix argument to push and pop commands.
[stgit] / contrib / release / snapshot.sh
CommitLineData
3dd412a1
CM
1#!/bin/sh
2#
3# Builds a daily snapshot
4
5VERSION=`date "+%Y%m%d"`
6SNAPSHOT=dist/stgit-$VERSION.tar.gz
7
04b44217 8git rev-list --pretty HEAD > ChangeLog
3dd412a1
CM
9
10mv stgit/version.py stgit/version.py-
11echo "version = '$VERSION'" > stgit/version.py
12
13rm -f MANIFEST
14python setup.py sdist
15
16rm stgit/version.py
17mv stgit/version.py- stgit/version.py
18
19# Upload
20lftp ftp://your-ftp-site/stgit/snapshots -u username,password -e " \
21set ftp:list-empty-ok yes; \
22echo Uploading $SNAPSHOT; \
23put $SNAPSHOT; \
24exit"