#!/bin/sh URL=http://www.oasis-open.org/docbook/xml/mathml/ wget $URL DIRS=`xsltproc --html debian/getdirs.xsl index.html` DTDNAME=dbmathml.dtd EXNAME=testmath.xml version=1.1CR1 DEBIAN_SRC_DIR=docbook-mathml-${version} DEBIAN_SRC_TAR=docbook-mathml_${version}.orig.tar.gz mkdir $DEBIAN_SRC_DIR cd $DEBIAN_SRC_DIR for dir in $DIRS; do mkdir $dir; cd $dir; wget "${URL}${dir}${DTDNAME}"; wget "${URL}${dir}${EXNAME}"; cd .. done cd .. GZIP="--best --no-name" tar czf ${DEBIAN_SRC_TAR} ${DEBIAN_SRC_DIR} # cleanup rm index.html rm -rf ${DEBIAN_SRC_DIR}