Cleanning configuration file.

This commit is contained in:
Manuel Canales Esparcia 2006-08-23 17:53:55 +00:00
parent 03e4b5b691
commit 7c9aa21ce8
2 changed files with 16 additions and 1 deletions

View file

@ -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

View file

@ -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"
}