Commit df7f73bd authored by Stefan Kost's avatar Stefan Kost

gtk-doc/: Use '$(SED)' instead of 'sed'. Don't use -i for in-place as its gnu...

gtk-doc/: Use '$(SED)' instead of 'sed'. Don't use -i for in-place as its gnu only, move to a temp file instead.

Original commit message from CVS:
* gtk-doc-plugins.mak:
* gtk-doc.mak:
Use '$(SED)' instead of 'sed'. Don't use -i for in-place as its gnu
only, move to a temp file instead.
parent 8b37d7ee
2008-02-08 Stefan Kost <ensonic@users.sf.net>
* gtk-doc-plugins.mak:
* gtk-doc.mak:
Use '$(SED)' instead of 'sed'. Don't use -i for in-place as its gnu
only, move to a temp file instead.
2008-02-06 Stefan Kost <ensonic@users.sf.net>
* gtk-doc-plugins.mak:
......
......@@ -233,7 +233,9 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
@if grep "warning:" html-build.log > /dev/null; then \
echo "ERROR"; grep "warning:" html-build.log; exit 1; fi
@rm html-build.log
sed -i "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)-@GST_MAJORMINOR@\//g" html/index.sgml
mv html/index.sgml html/index.sgml.bak
$(SED) "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)-@GST_MAJORMINOR@\//g" html/index.sgml.bak >html/index.sgml
rm -f html/index.sgml.bak
rm -f html/$(DOC_MAIN_SGML_FILE)
rm -rf html/xml
rm -f html/version.entities
......
......@@ -130,7 +130,9 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
cp -pr xml html
cp ../version.entities html
cd html && gtkdoc-mkhtml $(DOC_MODULE) $(DOC_MAIN_SGML_FILE)
sed -i "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)-@GST_MAJORMINOR@\//g" html/index.sgml
mv html/index.sgml html/index.sgml.bak
$(SED) "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)-@GST_MAJORMINOR@\//g" html/index.sgml.bak >html/index.sgml
rm -f html/index.sgml.bak
rm -f html/$(DOC_MAIN_SGML_FILE)
rm -rf html/xml
rm -f html/version.entities
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment