mkunxarc.sh 790 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh
  2. # Build a Unix source distribution from the PuTTY CVS area.
  3. #
  4. # Expects the following arguments:
  5. # - the suffix to put on the Unix source tarball
  6. # - the options to put on the 'make' command line for the docs
  7. arcsuffix="$1"
  8. relver=`cat LATEST.VER`
  9. arcname="putty$arcsuffix"
  10. mkdir uxarc
  11. mkdir uxarc/$arcname
  12. find . -name uxarc -prune -o \
  13. -name CVS -prune -o \
  14. -name .svn -prune -o \
  15. -name . -o \
  16. -type d -exec mkdir uxarc/$arcname/{} \;
  17. find . -name uxarc -prune -o \
  18. -name CVS -prune -o \
  19. -name .cvsignore -prune -o \
  20. -name .svn -prune -o \
  21. -name '*.zip' -prune -o \
  22. -name '*.tar.gz' -prune -o \
  23. -type f -exec ln -s $PWD/{} uxarc/$arcname/{} \;
  24. tar -C uxarc -chzof $arcname.tar.gz $arcname
  25. rm -rf uxarc