[util] config-local.h to avoid accidental commits

During development it is often handy to change the config.h options from
their defaults, for example to enable debugging features.

To prevent accidental commits of debugging config.h changes, mdc
suggested having a config-local.h that is excluded from source control.
This file acts as a temporary config.h and can override any of the
defaults.

This commit is an attempt to implement the config-local.h feature.

The config.h file now has the following as its last line:
/* @TRYSOURCE config-local.h */

The @TRYSOURCE directive causes config-local.h to be included at that
point in the file.  If config-local.h does not exist, no error will be
printed and parsing will continue as normal.  Therefore, mkconfig.pl is
"trying" to "source" config-local.h.
This commit is contained in:
Stefan Hajnoczi
2008-06-04 20:56:20 +01:00
committed by Michael Brown
parent 842165ef76
commit f866b17998
4 changed files with 32 additions and 12 deletions

1
src/.gitignore vendored
View File

@@ -2,3 +2,4 @@
.echocheck
TAGS*
bin*
config-local.h