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