aboutsummaryrefslogtreecommitdiff
path: root/bin/snapshot
blob: ea93e51ef2538ae619dc76022707d470ccce8721 (plain)
1
2
3
4
5
6
7
8
9
10
[ "$1" == "-d" ] && shift && APPEND="-`date +%Y%m%d_%H%M%S`"
[ -z "$1" ] && echo "usage $0 [-d] <name>" && exit 1

VER="$1$APPEND"

# for autoconf patch in bin/predist
export PDP_DIST_VERSION=$VER

# create archive
exec darcs dist -d "pdp-$VER"