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