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