Author: gnat Update of /cvs/pkgs/rpms/w3c-markup-validator/EL-5 In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv14337 Added Files: w3c-markup-validator-prepare-tarball.sh Log Message: syncing to devel --- NEW FILE w3c-markup-validator-prepare-tarball.sh --- #!/bin/bash # Prune content from upstream tarballs, generate combined one: # https://www.redhat.com/archives/fedora-legal-list/2009-February/msg00015.html # https://www.redhat.com/archives/fedora-legal-list/2009-February/msg00020.html set -e if [ -z "$1" -o $# -ne 1 ]; then echo "Usage: $0 <validator-version>" exit 2 fi unset CDPATH tmpdir= origdir=$(pwd) version=$1 tbver=${version//./_} pkg=w3c-markup-validator url1=http://validator.w3.org/dist/validator-$tbver.tar.gz url2=http://validator.w3.org/dist/sgml-lib-$tbver.tar.gz trap cleanup EXIT cleanup() { set +e [ -z "$tmpdir" -o ! -d "$tmpdir" ] || rm -rf "$tmpdir" } tmpdir=$(mktemp -d) cd $tmpdir curl -O $url1 curl -O $url2 tar zxf $(basename $url1) tar zxf $(basename $url2) rm -r validator-$version/htdocs/sgml-lib/ISO-HTML rm -r validator-$version/htdocs/images/valid_icons tar cf $origdir/$pkg-$version.tar validator-$version xz -f -v $origdir/$pkg-$version.tar -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel