- #!/bin/sh
- # Build a release of tconfpy
- # $Id: mktconfpy,v 1.106 2004/04/05 08:51:17 tundra Exp $
-
- COLOR=
- #COLOR=--color
- PROGFILE="tconfpy.py"
- SUPPFILES="Makefile tconfpy.3 tconfpy-license.txt test-tc.py test-tc.1 setup.py"
- 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
-
- # 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
-
-