#!/bin/bash [ "$1" == "-d" ] && shift && APPEND=".`date +%Y%m%d`-%h%M%s" BASE=$1 [ -z "$BASE" ] && BASE=`bin/version | sed s/.darcs//` VER="$BASE$APPEND" # used to be libpf NAME=packetforth-$VER # for autoconf patch in bin/predist export PF_DIST_VERSION=$VER # create archive darcs dist -d "$NAME" >/dev/null # echo the name echo "$NAME"