maketarball 425 B

1234567891011121314151617181920
  1. #!/u/rsc/plan9/bin/rc
  2. # cvs update
  3. cd $home/tmp/plan9cvs/plan9 || exit 1
  4. cvs up -dAP >[2=1] | grep -v Updating >$home/tmp/cvslog
  5. # exit if no changes and not being forced
  6. if(! test -s $home/tmp/cvslog && ~ $#* 0)
  7. exit 0
  8. # create new tar ball
  9. cd ..
  10. tar cf - plan9 | gzip > plan9port.tgz
  11. # install on web
  12. web=/u/rsc/www/swtch.com/plan9port
  13. mv $web/plan9port.tgz $web/_plan9port.tgz &&
  14. mv plan9port.tgz $web/plan9port.tgz