Skip to content
Snippets Groups Projects
Commit c529917c authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Keep a backup of the previous NuttXConfigVariables.html file

parent 770ce014
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ KCONFIG2HTML2=tools/kconfig2html.exe
KCONFIG2MAKEFILE=Makefile.host
KCONFIG2MAKEDIR=tools
HTMLFILE=Documentation/NuttXConfigVariables.html
BKUPFILE=Documentation/NuttXConfigVariables.bkp
# A version argument may be provided
......@@ -96,6 +97,14 @@ else
fi
fi
# Keep a backup of the previous HTML file. This is usefully primarily
# for testing the effects of changes.
if [ -e "${HTMLFILE}" ]; then
rm -f ${BKUPFILE} || { echo "ERROR: Failed to remove ${BKUPFILE}" ; exit 1 ; }
mv ${HTMLFILE} ${BKUPFILE} || { echo "ERROR: Failed to move ${HTMLFILE}" ; exit 1 ; }
fi
# Now re-create the configuration variable document
${KCONFIG2HTML} -a "${APPSDIR}" -o ${HTMLFILE}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment