jsoup/generate-tarball.sh

22 lines
511 B
Bash
Raw Normal View History

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