Blame SOURCES/xhtml1-dtds-prepare-tarball.sh

02914b
#!/bin/sh
02914b
02914b
set -e
02914b
02914b
# Prune content from upstream tarball:
02914b
# https://www.redhat.com/archives/fedora-legal-list/2009-February/msg00015.html
02914b
02914b
# While at it, prune docs as well; the W3C Documentation License is not an
02914b
# acceptable one per Fedora licensing guidelines.
02914b
02914b
date="20020801"
02914b
url="http://www.w3.org/TR/2002/REC-xhtml1-$date/xhtml1.tgz"
02914b
02914b
curl -O $url
02914b
tar zxf $(basename $url)
02914b
find xhtml1-$date -type f | grep -vF /DTD/ | xargs rm
02914b
rm $(basename $url)
02914b
02914b
tar jcvf xhtml1-dtds-$date.tar.bz2 xhtml1-$date
02914b
rm -r xhtml1-$date