make-tarball 766 B

1234567891011121314151617181920212223242526
  1. #! /bin/sh
  2. if [ "x$1" = "x" ]
  3. then
  4. echo "Usage: $0 <release number>"
  5. exit 1
  6. fi
  7. autoconf
  8. if test -e Makefile; then
  9. make devclean
  10. fi
  11. PWDSAVE=`pwd`
  12. PACKAGE=`basename $PWDSAVE`
  13. pushd ..
  14. ln -s $PACKAGE $PACKAGE-$1
  15. tar zhcvf $PWDSAVE/SOURCES/$PACKAGE-$1.tar.gz --exclude RCS --exclude CVS --exclude SOURCES --exclude RPMS --exclude SRPMS --exclude redhat --exclude debian --exclude solaris --exclude sparc64 --exclude rpmrc --exclude rpmmacros --exclude *~ --exclude .#* $PACKAGE-$1
  16. rm $PACKAGE-$1
  17. popd
  18. gzip -cd SOURCES/$PACKAGE-$1.tar.gz | bzip2 -c9 > SOURCES/$PACKAGE-$1.tar.bz2
  19. if md5sum --help >/dev/null; then
  20. md5sum ./SOURCES/$PACKAGE-$1.tar.gz > ./SOURCES/$PACKAGE-$1.tar.gz.md5
  21. md5sum ./SOURCES/$PACKAGE-$1.tar.bz2 > ./SOURCES/$PACKAGE-$1.tar.bz2.md5
  22. fi