Blame generate-tarball.sh

a1e0b28
#!/bin/sh
a1e0b28
a1e0b28
set -e
a1e0b28
a1e0b28
GIT_TAG='4.2.3'
a1e0b28
VERSION="$(sed -n 's/Version:\s*//p' *.spec)"
a1e0b28
a1e0b28
# Retrieve and set version
a1e0b28
git clone https://github.com/angband/angband.git
a1e0b28
 
a1e0b28
pushd angband
a1e0b28
git reset --hard "${GIT_TAG}"
a1e0b28
a1e0b28
# Remove restricted assets
a1e0b28
## Shockbolt tileset aren't provided under a valid license
a1e0b28
rm -rf lib/tiles/shockbolt
a1e0b28
a1e0b28
## Sound files aren't provided under a valid license
a1e0b28
rm -rf lib/sounds/*
a1e0b28
a1e0b28
## Library binaries should not be distributed
a1e0b28
rm -rf src/cocoa
a1e0b28
rm -rf src/nds
a1e0b28
rm -rf src/win
a1e0b28
a1e0b28
## Clean up
a1e0b28
git apply ../fix-restricted.patch
a1e0b28
a1e0b28
rm -rf .git
a1e0b28
popd
a1e0b28
a1e0b28
mv angband angband-$VERSION
a1e0b28
tar -czvf angband-$VERSION-norestricted.tar.gz angband-$VERSION
a1e0b28
rm -rf angband-$VERSION