- #!/bin/sh
- # Build a release of tconfpy
- # $Id: mktconfpy,v 1.101 2004/03/13 00:27:40 tundra Exp $
-
- COLOR=
- #COLOR=--color
- PROGFILE="tconfpy.py"
- SUPPFILES="Makefile tconfpy.3 tconfpy-license.txt test-tc.py"
- 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.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
- 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
-
-