#!/bin/sh # Build a release of tconfpy # $Id: mktconfpy,v 1.108 2004/04/22 22:20:25 tundra Exp $ COLOR= #COLOR=--color PROGFILE="tconfpy.py" SUPPFILES="Makefile tconfpy.3 tconfpy-license.txt test-tc.py test-tc.1 setup.py example.cfg" DOCFILES="tconfpy.html tconfpy.ps tconfpy.pdf tconfpy.py.ps READ-1ST.txt WHATSNEW.txt tconfpy.txt\ test-tc.html test-tc.ps test-tc.pdf test-tc.py.ps test-tc.txt" # Check Command Line Args DIR="py-tconfpy-"$1 if [ $# -ne 1 ] then echo "usage: mktconfpy version-number" exit fi # Add Release Tag To WHATSNEW echo "DON'T FORGET TO UPDATE WHATSNEW!!!!!!!" read X co -l WHATSNEW.txt echo "WHATSNEW For 'tconfpy' $1 (`date`)" > wntmp1 echo "----------------------------------------------------------------------" >> wntmp1 echo "" >> wntmp1 cat wntmp1 WHATSNEW.txt >wntmp2 mv wntmp2 WHATSNEW.txt ci WHATSNEW.txt <wntmp1 rm wntmp1 wntmp2 # 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 enscript -Epython -fCourier8 -i2 -L77 -C --mark-wrapped-lines=arrow $COLOR -ptest-tc.py.ps test-tc.py # Build Documentation rman -fHTML -l tconfpy tconfpy.3 > tconfpy.html groff -man -Tps tconfpy.3 >tconfpy.ps gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=tconfpy.pdf tconfpy.ps groff -man -Tascii tconfpy.3 | col -xb >tconfpy.txt rman -fHTML -l tconfpy test-tc.1 > test-tc.html groff -man -Tps test-tc.1 >test-tc.ps gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=test-tc.pdf test-tc.ps groff -man -Tascii test-tc.1 | col -xb >test-tc.txt chmod 644 $DOCFILES *txt gzip *.1 gzip *.3 # 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