667561
#!/bin/bash
667561
set -e
667561
667561
name=jsoup
667561
version="$(sed -n 's/Version:\s*//p' *.spec)"
667561
667561
# RETRIEVE
667561
wget "https://github.com/jhy/${name}/archive/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz"
667561
667561
rm -rf tarball-tmp
667561
mkdir tarball-tmp
667561
cd tarball-tmp
667561
tar xf "../${name}-${version}.orig.tar.gz"
667561
667561
# CLEAN TARBALL
667561
# contains scraped news articles (non-free)
667561
rm -r */src/test/resources
667561
667561
tar cf "../${name}-${version}.tar.gz" *
667561
cd ..
667561
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"