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