Cleanning configuration file.
This commit is contained in:
parent
03e4b5b691
commit
7c9aa21ce8
2 changed files with 16 additions and 1 deletions
|
@ -110,6 +110,19 @@ regenerate_deps() { #
|
|||
done
|
||||
}
|
||||
|
||||
#
|
||||
# Clean configuration file keeping only global default settings.
|
||||
# Than prevent "trying to assign nonexistent symbol" messages
|
||||
# and assures that there is no TARGET selected from a pevious run
|
||||
#
|
||||
#--------------------------#
|
||||
clean_configuration() { #
|
||||
#--------------------------#
|
||||
|
||||
tail -n 30 configuration > configuration.tmp
|
||||
mv configuration.tmp configuration
|
||||
|
||||
}
|
||||
|
||||
#---------------------
|
||||
# Constants
|
||||
|
@ -141,3 +154,4 @@ generate_dependency_tree
|
|||
generate_TARGET_xml
|
||||
generate_target_book
|
||||
create_build_scripts "${SUDO}"
|
||||
clean_configuration
|
||||
|
|
|
@ -143,8 +143,9 @@ inline_doc
|
|||
--stringparam sudo $SUDO \
|
||||
-o ./scripts/ ../libs/scripts.xsl \
|
||||
$TARGET-index.xml >> xsltproc.log 2>&1
|
||||
echo -e "done\n"
|
||||
# Make the scripts executable.
|
||||
chmod -R +x scripts
|
||||
cd ..
|
||||
echo -e "done\n"
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue