2020-10-15 12:24:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
name=jsoup
|
|
|
|
version="$(sed -n 's/Version:\s*//p' *.spec)"
|
|
|
|
|
|
|
|
# RETRIEVE
|
|
|
|
wget "https://github.com/jhy/${name}/archive/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz"
|
|
|
|
|
|
|
|
rm -rf tarball-tmp
|
|
|
|
mkdir tarball-tmp
|
2021-06-08 18:17:56 +00:00
|
|
|
pushd tarball-tmp
|
|
|
|
tar -xf "../${name}-${version}.orig.tar.gz"
|
2020-10-15 12:24:08 +00:00
|
|
|
|
|
|
|
# CLEAN TARBALL
|
|
|
|
# contains scraped news articles (non-free)
|
2021-06-08 18:17:56 +00:00
|
|
|
rm -r "${name}-${name}-${version}/src/test/resources"
|
2020-10-15 12:24:08 +00:00
|
|
|
|
2021-06-08 18:17:56 +00:00
|
|
|
tar -czf "../${name}-${version}.tar.gz" *
|
|
|
|
popd
|
2020-10-15 12:24:08 +00:00
|
|
|
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
|