#!/bin/sh FILES="Makefile tdir.1 tdir.py 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 mv $FILES $DIR tar -czvf $DIR.tar.gz $DIR rm -rf $DIR