Blame SOURCES/create-tarball.sh

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