#!/bin/sh # Build a release of twander # $Id: mktwander,v 1.11 2002/12/21 21:43:02 tundra Exp $ PROGFILE="twander.py" SUPPFILES="Makefile twander.1 twander-license.txt .twander" DOCFILES="twander.html twander.ps twander.py.ps twander.txt" # Check Command Line Args DIR="twander-"$1 if [ $# -ne 1 ] then echo "usage: mktwander version-number" exit fi # Create Working Directory mkdir $DIR # Extract Files From RCS co -r$1 $PROGFILE co $SUPPFILES # Pretty Print The Source Code enscript -Epython -fCourier8 -i2 -L77 -C --mark-wrapped-lines=arrow -ptwander.py.ps twander.py # Build Documentation rman -fHTML -l twander twander.1 >twander.html groff -man -Tps twander.1 >twander.ps groff -man -Tascii twander.1 | col -xb >twander.txt chmod 644 $DOCFILES *.txt gzip *.1 # Build And Save The Release mv $PROGFILE $SUPPFILES $DOCFILES $DIR mv *.gz $DIR rlog twander.py >$DIR/CHANGELOG.txt flip -vm $DIR/*txt tar -czvf $DIR.tar.gz $DIR mv $DIR.tar.gz Releases # Remove Working Directory #rm -rf $DIR