2018-07-23 08:56:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
name=plexus-languages
|
|
|
|
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
|
|
|
|
|
|
|
# RETRIEVE
|
|
|
|
wget "https://github.com/codehaus-plexus/plexus-languages/archive/plexus-languages-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz"
|
|
|
|
|
|
|
|
rm -rf tarball-tmp
|
|
|
|
mkdir tarball-tmp
|
2020-01-27 15:19:36 +00:00
|
|
|
pushd tarball-tmp
|
2020-07-29 13:13:45 +00:00
|
|
|
tar -xf "../${name}-${version}.orig.tar.gz"
|
2018-07-23 08:56:01 +00:00
|
|
|
|
|
|
|
# CLEAN TARBALL
|
|
|
|
find -name '*.jar' -delete
|
|
|
|
find -name '*.class' -delete
|
|
|
|
|
2020-01-27 15:19:36 +00:00
|
|
|
tar -czf "../${name}-${version}.tar.gz" *
|
|
|
|
popd
|
2018-07-23 08:56:01 +00:00
|
|
|
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
|