2012-11-16 12:57:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e -x
|
|
|
|
test $# -eq 1
|
2015-05-14 12:30:28 +00:00
|
|
|
test ! -d guice
|
2023-03-21 07:06:41 +00:00
|
|
|
git clone https://github.com/google/guice.git
|
2015-05-14 12:30:28 +00:00
|
|
|
cd ./guice
|
|
|
|
git checkout ${1}
|
|
|
|
git branch unbundled-${1}
|
|
|
|
git checkout unbundled-${1}
|
|
|
|
rm -rf $(ls . | grep -E -v 'core|extensions|pom|bom|jdk8-tests|COPYING|common.xml')
|
2013-03-15 07:35:33 +00:00
|
|
|
find . -name "*.jar" -delete
|
|
|
|
find . -name "*.class" -delete
|
2012-11-16 12:57:37 +00:00
|
|
|
git commit -a -m "Remove unneeded stuff"
|
|
|
|
git tag unbundled-${1}
|
|
|
|
git archive --format=tar --prefix=google-guice-${1}/ unbundled-${1} \
|
|
|
|
| xz >../google-guice-${1}.tar.xz
|