Newer
Older
tconfpy / mktconfpy
@tundra tundra on 1 Jul 2003 1 KB Initial revision
  1. #!/bin/sh
  2. # Build a release of tconfpy
  3. # $Id: mktconfpy,v 1.1 2003/07/01 18:21:39 tundra Exp $
  4.  
  5. COLOR=
  6. #COLOR=--color
  7. PROGFILE="tconfpy.py"
  8. SUPPFILES="Makefile tconfpy.1 tconfpy-license.txt"
  9. DOCFILES="tconfpy.html tconfpy.ps tconfpy.pdf tconfpy.py.ps READ-1ST.txt WHATSNEW.txt tconfpy.txt"
  10.  
  11. # Check Command Line Args
  12.  
  13. DIR="tconfpy-"$1
  14.  
  15. if [ $# -ne 1 ]
  16. then
  17. echo "usage: mktconfpy version-number"
  18. exit
  19. fi
  20.  
  21. # Create Working Directory
  22.  
  23. mkdir $DIR
  24.  
  25. # Extract Files From RCS
  26.  
  27. co -r$1 $PROGFILE
  28. chmod 755 $PROGFILE
  29. co $SUPPFILES
  30. co $DOCFILES
  31.  
  32. # Pretty Print The Source Code
  33.  
  34. enscript -Epython -fCourier8 -i2 -L77 -C --mark-wrapped-lines=arrow $COLOR -ptconfpy.py.ps tconfpy.py
  35.  
  36. # Build Documentation
  37.  
  38. rman -fHTML -l tconfpy tconfpy.1 > tconfpy.html
  39. groff -man -Tps tconfpy.1 >tconfpy.ps
  40. gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=tconfpy.pdf tconfpy.ps
  41. groff -man -Tascii tconfpy.1 | col -xb >tconfpy.txt
  42. chmod 644 $DOCFILES *txt
  43. gzip *.1
  44.  
  45. # Build And Save The Release
  46.  
  47. mv $PROGFILE $SUPPFILES $DOCFILES $DIR
  48. mv *.gz $DIR
  49. rlog $PROGFILE >$DIR/CHANGELOG.txt
  50. flip -vm $DIR/*txt
  51. tar -czvf $DIR.tar.gz $DIR
  52. mv $DIR.tar.gz Releases
  53.  
  54. # Remove Working Directory
  55. rm -rf $DIR
  56.  
  57.