Newer
Older
twander / mktwander
  1. #!/bin/sh
  2. # Build a release of twander
  3. # $Id: mktwander,v 1.16 2003/02/10 23:21:39 tundra Exp $
  4.  
  5. COLOR=
  6. #COLOR=--color
  7. PROGFILE="twander.py"
  8. SUPPFILES="Makefile twander.1 twander-license.txt .twander"
  9. DOCFILES="twander.html twander.pdf twander.ps twander.py.ps twander.txt WHATSNEW.txt"
  10.  
  11. # Check Command Line Args
  12.  
  13. DIR="twander-"$1
  14.  
  15. if [ $# -ne 1 ]
  16. then
  17. echo "usage: mktwander 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.  
  31. # Pretty Print The Source Code
  32.  
  33. enscript -Epython -fCourier8 -i2 -L77 -C --mark-wrapped-lines=arrow $COLOR -ptwander.py.ps twander.py
  34.  
  35. # Build Documentation
  36.  
  37. rman -fHTML -l twander twander.1 >twander.html
  38. groff -man -Tps twander.1 >twander.ps
  39. gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=twander.pdf twander.ps
  40. groff -man -Tascii twander.1 | col -xb >twander.txt
  41. chmod 644 $DOCFILES *.txt
  42. gzip *.1
  43.  
  44. # Build And Save The Release
  45.  
  46. cp $PROGFILE $SUPPFILES $DOCFILES $DIR
  47. cp *.gz $DIR
  48. rlog twander.py >$DIR/CHANGELOG.txt
  49. flip -vm $DIR/*txt
  50. tar -czvf $DIR.tar.gz $DIR
  51. mv $DIR.tar.gz Releases
  52.  
  53. # Remove Working Directory
  54. #rm -rf $DIR
  55.