From: Norman Walsh Date: Thu, 14 Mar 2002 14:58:26 +0000 (+0000) Subject: Fudge some more system ids X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b773de96de43e8c13612567bf1813339d7c7d8a;p=docbook-dsssl Fudge some more system ids --- diff --git a/cvstools/flatten b/cvstools/flatten index ef685647c..1a8399f4b 100755 --- a/cvstools/flatten +++ b/cvstools/flatten @@ -51,14 +51,15 @@ sub read_dtd { local(*F, $_); # HACK HACK HACK - if ($dtd =~ /http:\/\/www.oasis-open.org\/docbook\/xml\/.*?\// - || $dtd =~ /http:\/\/docbook.org\/xml\/.*?\//) { - $dtd = "/sourceforge/docbook/docbook/xml/$'"; + if ($dtd =~ /http:\/\/www.oasis-open.org\/docbook\/xml\/simple\/.*\/([^\/]+)$/) { + print STDERR "match: $1\n"; + $dtd = "/sourceforge/docbook/docbook/simple/$1"; } # HACK HACK HACK - if ($dtd =~ /http:\/\/nwalsh.com\/docbook\/simple\/.*\/([^\/]+)$/) { - $dtd = "/sourceforge/docbook/simple/$1"; + if ($dtd =~ /http:\/\/www.oasis-open.org\/docbook\/xml\/.*?\// + || $dtd =~ /http:\/\/docbook.org\/xml\/.*?\//) { + $dtd = "/sourceforge/docbook/docbook/xml/$'"; } if (! -f $dtd) {