Blame SOURCES/xhtml1-dtds-prepare-tarball.sh

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