#!/bin/sh # Build a release of tconfpy # $Id: mktconfpy,v 1.1 2003/07/01 18:21:39 tundra Exp $ COLOR= #COLOR=--color PROGFILE="tconfpy.py" SUPPFILES="Makefile tconfpy.1 tconfpy-license.txt" DOCFILES="tconfpy.html tconfpy.ps tconfpy.pdf tconfpy.py.ps READ-1ST.txt WHATSNEW.txt tconfpy.txt" # Check Command Line Args DIR="tconfpy-"$1 if [ $# -ne 1 ] then echo "usage: mktconfpy version-number" exit fi # Create Working Directory mkdir $DIR # Extract Files From RCS co -r$1 $PROGFILE chmod 755 $PROGFILE co $SUPPFILES co $DOCFILES # Pretty Print The Source Code enscript -Epython -fCourier8 -i2 -L77 -C --mark-wrapped-lines=arrow $COLOR -ptconfpy.py.ps tconfpy.py # Build Documentation rman -fHTML -l tconfpy tconfpy.1 > tconfpy.html groff -man -Tps tconfpy.1 >tconfpy.ps gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=tconfpy.pdf tconfpy.ps groff -man -Tascii tconfpy.1 | col -xb >tconfpy.txt chmod 644 $DOCFILES *txt gzip *.1 # Build And Save The Release mv $PROGFILE $SUPPFILES $DOCFILES $DIR mv *.gz $DIR rlog $PROGFILE >$DIR/CHANGELOG.txt flip -vm $DIR/*txt tar -czvf $DIR.tar.gz $DIR mv $DIR.tar.gz Releases # Remove Working Directory rm -rf $DIR