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