google-guice/create-tarball.sh
Petr Šabata cd04a0e18d RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/google-guice#956803a10b0fa702489095ba260adbd4e1a29f1e
2020-10-15 09:40:46 +02:00

17 lines
493 B
Bash
Executable File

#!/bin/sh
set -e -x
test $# -eq 1
test ! -d guice
git clone git://github.com/google/guice.git
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')
find . -name "*.jar" -delete
find . -name "*.class" -delete
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