prepare_snapshot.sh 427 B

1234567891011121314151617
  1. #!/bin/sh
  2. VERSION=$(date +%Y%m%d)
  3. BASE_VERSION="0.0"
  4. PACKAGE="libcxx-${BASE_VERSION}_p${VERSION}"
  5. svn co http://llvm.org/svn/llvm-project/libcxx/trunk ${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 **"