Newer
Older
tdir / mktdir
  1. #!/bin/sh
  2.  
  3. FILES="Makefile tdir tdir.bat tdir-license.txt"
  4. DIR="tdir-"$1
  5.  
  6. if [ $# -ne 1 ]
  7. then
  8. echo "usage: mktdir version-number"
  9. exit
  10. fi
  11.  
  12. mkdir $DIR
  13. cp -pv $FILES $DIR
  14. git log >$DIR/CHANGELOG
  15. gzip -k tdir.1
  16. mv tdir.1.gz $DIR
  17. tar -czvf $DIR.tar.gz $DIR
  18. rm -rf $DIR