Blame SOURCES/create-tarball.sh

58c565
#!/bin/sh
58c565
set -e -x
58c565
test $# -eq 1
58c565
test ! -d guice
58c565
git clone git://github.com/google/guice.git
58c565
cd ./guice
58c565
git checkout ${1}
58c565
git branch unbundled-${1}
58c565
git checkout unbundled-${1}
58c565
rm -rf $(ls . | grep -E -v 'core|extensions|pom|bom|jdk8-tests|COPYING|common.xml')
58c565
find . -name "*.jar" -delete
58c565
find . -name "*.class" -delete
58c565
git commit -a -m "Remove unneeded stuff"
58c565
git tag unbundled-${1}
58c565
git archive --format=tar --prefix=google-guice-${1}/ unbundled-${1} \
58c565
    | xz >../google-guice-${1}.tar.xz