3800922e51ee132e5c2df0773bdbaa9094a59909 markd Wed May 14 21:20:46 2025 -0700 avoid permission errors when changing mode by using a tmp file diff --git docs/makefile docs/makefile index 50f4d09e76d..e4d0924a3b2 100644 --- docs/makefile +++ docs/makefile @@ -5,22 +5,24 @@ ${MAKE} doInstall destDir=${DOCUMENTROOT}-${USER} alpha: ${MAKE} doInstall destDir=${DOCUMENTROOT} beta: ${MAKE} doInstall destDir=${DOCUMENTROOT}-beta DOCS = index gb101 gatewayTutorial page_template doInstall: ${DOCS:%=%_install} %_install: ${MKDIR} ${destDir}/docs/ - pandoc --ascii -f markdown-smart -t html5 -o ${destDir}/docs/$*.html $*.md --template staticPage.html -t staticPage.lua --lua-filter GBpandocHTMLrules.lua + rm -f ${destDir}/docs/$*.tmp.html + pandoc --ascii -f markdown-smart -t html5 -o ${destDir}/docs/$*.tmp.html $*.md --template staticPage.html -t staticPage.lua --lua-filter GBpandocHTMLrules.lua + mv -f ${destDir}/docs/$*.tmp.html ${destDir}/docs/$*.html chmod a+x ${destDir}/docs/$*.html testPandoc: @printf "Test the following path and commands look ok\n" @printf "pandoc path: %s\n" "`which pandoc`" @printf "pandoc --ascii -f markdown-smart -t html5 index.md --template staticPage.html -t staticPage.lua\n" "${DOCUMENTROOT}/"