-#!/bin/sh
+#!/bin/bash
# Build a Unix source distribution from the PuTTY CVS area.
#
# Pass an argument of the form `2004-02-08' to have the archive
# tagged as a development snapshot; of the form `0.54' to have it
-# tagged as a release.
+# tagged as a release; of the form `r1234' to have it tagged as a
+# custom build. Otherwise it'll be tagged as unidentified.
case "$1" in
????-??-??)
ver="-DSNAPSHOT=$1"
docver=
;;
+ r*)
+ arcsuffix="-$1"
+ ver="-DSVN_REV=${1#r}"
+ docver=
+ ;;
'')
arcsuffix=
ver=