mkunxarc.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/sh
  2. # Build a Unix source distribution from the PuTTY CVS area.
  3. #
  4. # Expects the following arguments:
  5. # - the version number to write into configure.ac
  6. # - the suffix to put on the Unix source tarball
  7. # - the options to put on the 'make' command line for the docs
  8. autoconfver="$1"
  9. arcsuffix="$2"
  10. docver="$3"
  11. perl mkfiles.pl
  12. (cd doc && make -s ${docver:+"$docver"})
  13. relver=`cat LATEST.VER`
  14. arcname="putty$arcsuffix"
  15. mkdir uxarc
  16. mkdir uxarc/$arcname
  17. find . -name uxarc -prune -o \
  18. -name CVS -prune -o \
  19. -name .svn -prune -o \
  20. -name . -o \
  21. -type d -exec mkdir uxarc/$arcname/{} \;
  22. find . -name uxarc -prune -o \
  23. -name CVS -prune -o \
  24. -name .cvsignore -prune -o \
  25. -name .svn -prune -o \
  26. -name configure.ac -prune -o \
  27. -name '*.zip' -prune -o \
  28. -name '*.tar.gz' -prune -o \
  29. -type f -exec ln -s $PWD/{} uxarc/$arcname/{} \;
  30. sed "s/^AC_INIT(putty,.*/AC_INIT(putty, $autoconfver)/" configure.ac > uxarc/$arcname/configure.ac
  31. (cd uxarc/$arcname && sh mkauto.sh) 2>errors || { cat errors >&2; exit 1; }
  32. tar -C uxarc -chzof $arcname.tar.gz $arcname
  33. rm -rf uxarc