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