#!/bin/sh FILES="Makefile tdir tdir.bat tdir-license.txt" DIR="tdir-"$1 if [ $# -ne 1 ] then echo "usage: mktdir version-number" exit fi mkdir $DIR cp -pv $FILES $DIR git log >$DIR/CHANGELOG gzip -k tdir.1 mv tdir.1.gz $DIR tar -czvf $DIR.tar.gz $DIR rm -rf $DIR