prepare_snapshot.sh 426 B

1234567891011121314151617
  1. #!/bin/sh
  2. VERSION=$(date +%Y%m%d)
  3. BASE_VERSION="0.0"
  4. PACKAGE="libcxxrt-${BASE_VERSION}_p${VERSION}"
  5. git clone git://github.com/pathscale/libcxxrt.git ${PACKAGE}
  6. find "${PACKAGE}" -type d -name '.svn' -prune -print0 | xargs -0 rm -rf
  7. find "${PACKAGE}" -type d -name '.git' -prune -print0 | xargs -0 rm -rf
  8. tar cJf ${PACKAGE}.tar.xz ${PACKAGE}
  9. rm -rf ${PACKAGE}/
  10. echo "Tarball: \"${PACKAGE}.tar.xz\""
  11. echo "** all done **"