pack.sh 398 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. # Run it from the root of the coturn source tree
  3. V=4.7.0
  4. PACKDIR=`pwd`/../coturn-releases/
  5. SRCDIR=`pwd`
  6. DDIR=turnserver-${V}
  7. cd ${SRCDIR}/
  8. make distclean
  9. cd ${PACKDIR}
  10. rm -rf tmp
  11. mkdir tmp
  12. cd tmp
  13. mkdir ${DDIR}
  14. cp -R ${SRCDIR}/* ${DDIR}/
  15. #tell tar to not include the metadata
  16. COPYFILE_DISABLE=1 tar cvfz ../${DDIR}.tar.gz ${DDIR}
  17. cd ..
  18. rm -rf tmp
  19. cp -a ${SRCDIR}/ChangeLog ${PACKDIR}