Newer
Older
twander / mktwander
  1. #!/bin/sh
  2. # Build a release of twander
  3. # $Id: mktwander,v 1.4 2002/12/13 21:59:24 tundra Exp $
  4.  
  5. PROGFILE="twander.py"
  6. SUPPFILES="Makefile twander.1 twander-license.txt .twander"
  7. DOCFILES="twander.txt twander.html"
  8.  
  9. DIR="twander-"$1
  10.  
  11. if [ $# -ne 1 ]
  12. then
  13. echo "usage: mktwander version-number"
  14. exit
  15. fi
  16.  
  17. mkdir $DIR
  18. co -r$1 $PROGFILE
  19. co $SUPPFILES
  20.  
  21. groff -man -Tascii twander.1 | col -xb >twander.txt
  22. groff -man -Thtml twander.1 >twander.html
  23. chmod u+w *txt
  24. flip -vm *txt
  25. gzip *.1
  26.  
  27. mv $PROGFILE $SUPPFILES $DOCFILES $DIR
  28. mv *.gz $DIR
  29. rlog twander.py >$DIR/CHANGELOG.twander
  30. tar -czvf $DIR.tar.gz $DIR
  31. rm -rf $DIR
  32. mv $DIR.tar.gz Releases
  33.  
  34.