2019-09-24 11:06:49 +00:00
|
|
|
#!/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
|
2020-01-24 15:58:38 +00:00
|
|
|
pushd tarball-tmp
|
2019-09-24 11:06:49 +00:00
|
|
|
tar xf "../${name}-${version}.orig.tar.gz"
|
|
|
|
|
|
|
|
# CLEAN TARBALL
|
|
|
|
find -name '*.jar' -delete
|
|
|
|
find -name '*.class' -delete
|
|
|
|
find -name '*.zip' -delete
|
2019-12-06 07:27:37 +00:00
|
|
|
find -name '*.dll' -delete
|
2019-09-24 11:06:49 +00:00
|
|
|
|
2020-01-24 15:58:38 +00:00
|
|
|
tar -czf "../${name}-${version}.tar.gz" *
|
|
|
|
popd
|
2019-09-24 11:06:49 +00:00
|
|
|
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
|