2018-07-18 14:05:51 +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
|
2020-01-27 15:28:30 +00:00
|
|
|
pushd tarball-tmp
|
2020-08-25 07:29:24 +00:00
|
|
|
tar -xf "../${name}-${version}.orig.tar.gz"
|
2018-07-18 14:05:51 +00:00
|
|
|
|
|
|
|
# CLEAN TARBALL
|
|
|
|
# contains scraped news articles (non-free)
|
2020-08-25 07:29:24 +00:00
|
|
|
rm -r "${name}-${name}-${version}/src/test/resources"
|
2018-07-18 14:05:51 +00:00
|
|
|
|
2020-01-27 15:28:30 +00:00
|
|
|
tar -czf "../${name}-${version}.tar.gz" *
|
|
|
|
popd
|
2018-07-18 14:05:51 +00:00
|
|
|
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
|