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