fontforge/get-source.sh
Petr Gajdos 03aeaea848 - updated to 20150430: this release includes a few bug fixes,
performance enhancements, and refreshed icons.
- download uthash when get-source.sh
- fontforge --version now returns fontforge release version

OBS-URL: https://build.opensuse.org/package/show/M17N/fontforge?expand=0&rev=52
2015-05-11 11:24:38 +00:00

28 lines
605 B
Bash

#!/bin/sh
#
# repack source -- delete libX11-*.noarch.rpm from there; see bug #926061
#
VERSION=$1
if [ -z $VERSION ]; then
echo "usage: $0 date_version"
echo "example: $0 20150330"
exit 1
fi
wget "https://github.com/fontforge/fontforge/archive/$VERSION.tar.gz"
tar xf $VERSION.tar.gz
pushd fontforge-$VERSION
# do not depend on git
git clone https://github.com/troydhanson/uthash
# remove not shippable files (bug 926061)
rm win/gold/libX11-*.noarch.rpm
./bootstrap --copy --force
popd
tar czf fontforge-$VERSION-repacked.tar.gz fontforge-$VERSION
rm -rf fontforge-$VERSION
rm $VERSION.tar.gz