mkrelease 495 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. # %W%
  3. #
  4. # XXX - does not check for checked out files.
  5. make -s clean
  6. make -s get
  7. VERS=`egrep 'MAJOR|MINOR' src/version.h | awk '{print $3}'`
  8. set `echo $VERS`
  9. if [ $2 -lt 0 ]
  10. then VERS=`echo $1$2 | sed s/-/alpha/`
  11. else VERS=`echo $VERS |sed 's/ /./'`
  12. fi
  13. D=lmbench-$VERS
  14. mkdir $D $D/results
  15. cp -rp SCCS doc hbench-REBUTTAL lmbench-HOWTO scripts src $D
  16. cp -rp results/SCCS $D/results
  17. (cd $D && make -s get)
  18. /bin/rm -rf $D/SCCS $D/*/SCCS
  19. tar czvf $D.tgz $D
  20. /bin/rm -rf $D
  21. make -s clean