summaryrefslogtreecommitdiffstats
path: root/maintainer-scripts/update_web_docs_svn
diff options
context:
space:
mode:
authorgerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-02 20:07:14 +0000
committergerald <gerald@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-02 20:07:14 +0000
commit5a280a92a29a7f18a7b1f578c7d22710280fecbe (patch)
treeef796b29099fe7224826e94c12f2f25490b2b0d4 /maintainer-scripts/update_web_docs_svn
parentf54a4e29010345eaf8ccc1034eb7a1d4312c4a7d (diff)
downloadppe42-gcc-5a280a92a29a7f18a7b1f578c7d22710280fecbe.tar.gz
ppe42-gcc-5a280a92a29a7f18a7b1f578c7d22710280fecbe.zip
* update_web_docs_svn: Work around makeinfo generated file names
and references with "_002d" instead of "-". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205600 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'maintainer-scripts/update_web_docs_svn')
-rwxr-xr-xmaintainer-scripts/update_web_docs_svn13
1 files changed, 13 insertions, 0 deletions
diff --git a/maintainer-scripts/update_web_docs_svn b/maintainer-scripts/update_web_docs_svn
index cfc33c42bf5..8a5883eeca7 100755
--- a/maintainer-scripts/update_web_docs_svn
+++ b/maintainer-scripts/update_web_docs_svn
@@ -172,6 +172,19 @@ for file in $MANUALS; do
fi
done
+# Work around makeinfo generated file names and references with
+# "_002d" instead of "-".
+find . -name '*.html' | while read f; do
+ # Do this for the contents of each file.
+ sed -i -e 's/_002d/-/g' "$f"
+ # And rename files if necessary.
+ ff=`echo $f | sed -e 's/_002d/-/g'`;
+ if [ "$f" != "$ff" ]; then
+ printf "Renaming %s to %s\n" "$f" "$ff"
+ mv "$f" "$ff"
+ fi
+done
+
# Then build a gzipped copy of each of the resulting .html, .ps and .tar files
for file in */*.html *.ps *.pdf *.tar; do
cat $file | gzip --best > $file.gz
OpenPOWER on IntegriCloud