rpms/rubygem-hpricot/F-9 rubygem-hpricot-create-free-gem.sh, NONE, 1.1
Mamoru Tasaka
mtasaka at fedoraproject.org
Wed Feb 11 04:01:03 UTC 2009
Author: mtasaka
Update of /cvs/extras/rpms/rubygem-hpricot/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2861/F-9
Added Files:
rubygem-hpricot-create-free-gem.sh
Log Message:
initital commit 2
--- NEW FILE rubygem-hpricot-create-free-gem.sh ---
#!/bin/sh
set -x
# On the review request (rh bug 477526) it is found that
# boingboing.html are under CC-BY-NC (non-commercial)...
# too bad, not allowed on Fedora.
VERSION=${VERSION:-0.6.164}
URL=http://gems.rubyforge.org/gems/
wget -N ${URL}/hpricot-${VERSION}.gem
TMPDIR=$(mktemp -d /tmp/hpricot-XXXXXX)
tar -C $TMPDIR -xf hpricot-${VERSION}.gem
pushd $TMPDIR
mkdir TMP
tar -C TMP -xf data.tar.gz
cd TMP
# Remove CC-BY-NC licensed file
find . -name \*boingboing\* | xargs rm -f
# Recreate gem
VERSION=${VERSION} rake gem
popd
mv ${TMPDIR}/TMP/pkg/*.gem hpricot-${VERSION}-modified.gem
chmod 0644 hpricot-${VERSION}-modified.gem
rm -rf $TMPDIR
More information about the fedora-extras-commits
mailing list