]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't map local links to cups.org page...
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 6 Dec 2008 08:08:15 +0000 (08:08 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 6 Dec 2008 08:08:15 +0000 (08:08 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@8166 7a7537e8-13f0-0310-91df-b6672ffda945

tools/makedocset

index 4974f023f63add8cc11816f673c580efdd1478fd..46c87877bcc5fb8298c076fd710674be9d578a69 100755 (executable)
@@ -41,13 +41,14 @@ done
 
 echo "<h1>$title</h1>" >"$header.ds"
 sed -e '1,$s/<a href='"'"'/<a href='"'"'http:\/\/www.cups.org\/documentation.php\//g' < "$header" >>"$header.ds"
-sed -e '1,$s/\/images\///g' <"$intro" >"$intro.ds"
+sed -e '1,$s/\/images\///g' -e '1,$s/<a href='"'"'/<a href='"'"'http:\/\/www.cups.org\/documentation.php\//g'  <"$intro" >"$intro.tmp"
+sed -e '1,$s/http:\/\/www.cups.org\/documentation\.php\/#/#/g' <"$intro.tmp" >"$intro.ds"
 
 mxmldoc --docset "$docset" --docversion "$docversion" \
        --feedname cups.org --feedurl http://www.cups.org/docsets.atom \
        --title "$title" --css ../doc/cups-printable.css \
        --header "$header.ds" --intro "$intro.ds" $sources || exit 1
-rm -f "$header.ds" "$intro.ds"
+rm -f "$header.ds" "$intro.ds" "$intro.tmp"
 
 if test ! -d ../docsets; then
        mkdir ../docsets