Projects
openEuler:22.03:LTS:LoongArch
rubygem-hpricot
_service:tar_scm_kernel_repo:rubygem-hpricot-cr...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:rubygem-hpricot-create-free-gem.sh of Package rubygem-hpricot
#!/bin/sh set -x # On the review request it is found that boingboing.html # is under CC-BY-NC, not for commercial. # So we should remove it from source packge. VERSION=${VERSION:-0.8.6} URL=http://rubygems.org/downloads 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 # Fixing Rakefile find . -name Rakefile | \ xargs sed -i -e '\@s\.version@s|VERS$|VERS.dup|' # Recreate gem VERSION=${VERSION} rake gem --trace popd mv ${TMPDIR}/TMP/pkg/*.gem hpricot-${VERSION}-modified.gem chmod 0644 hpricot-${VERSION}-modified.gem rm -rf $TMPDIR
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.