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