diff --git a/.gitignore b/.gitignore index 4d6a41f..4106cf2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/byte-buddy-1.12.10.tar.gz +/*.src.rpm +/*.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..ee59cb1 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# byte-buddy + +The byte-buddy package \ No newline at end of file diff --git a/generate-tarball.sh b/generate-tarball.sh new file mode 100644 index 0000000..f9a0dd9 --- /dev/null +++ b/generate-tarball.sh @@ -0,0 +1,23 @@ +#!/bin/bash +set -e + +name=byte-buddy +version="$(sed -n 's/Version:\s*//p' *.spec)" + +# RETRIEVE +wget "https://github.com/raphw/byte-buddy/archive/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz" + +rm -rf tarball-tmp +mkdir tarball-tmp +pushd tarball-tmp +tar -xf "../${name}-${version}.orig.tar.gz" + +# CLEAN TARBALL +find -name '*.jar' -delete +find -name '*.class' -delete +find -name '*.zip' -delete +find -name '*.dll' -delete + +tar -czf "../${name}-${version}.tar.gz" * +popd +rm -r tarball-tmp "${name}-${version}.orig.tar.gz"