summaryrefslogtreecommitdiff
path: root/lib/sbin/ConfigScriptParser.pl
Commit message (Collapse)AuthorAge
* Correct handling of newline characters and spaces when writing theschnetter2005-11-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configuration bindings. When reading the configuration settings from the output of the configuration scripts (that provide capabilities), new lines were lost in certain circumstances. This lead to makefile fragments like PETSC_DIR = /usr/local/apps/petscPETSC_ARCH = linux which are obviously incorrect (since these should be two lines, not one), although this does not lead to errors or warnings. This patch makes sure that all configuration settings have newline characters appended or blanks prepended as they are concatenated into the internal database (ConfigScriptParser.pl). When the database is read out, the strings can just be printed to the file (CreateConfigurationBindings.pl). While doing this, this patch also removes some superfluous blanks and newline characters from the output of the configuration settings. This patch also removes a perl idiosyncracy when appending newline characters to a string. It changes code like "#endif" . "\n" to "#endif\n". Tested on Mac OS and Red Hat Linux. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4199 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixed CST error message printed in case of parsing errors.tradke2005-02-22
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3992 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Put a newline between different MAKE_DEFINITION blocks.tradke2004-11-08
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3903 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Added tracking of options for thorn configuration scripts. Now a thorngoodale2004-08-27
| | | | | | | | | | | | | | | | | | | | | | may specify OPTIONS a b c in a PROVIDES block in its configuration.ccl and these options will be tracked and stored in the configuration's config-info file. The config-info file, and any options file specified on the command line are now used to setup the environment before a configuration script is run by the CST. Note that the only options stored to the config-info file by the CST are ones specified in the configuration.ccl files, and configuration scripts are invoked each time the CST is run, so any option used by a thorn's configuration script MUST be mentioned in the configuration.ccl file to be remembered the next time the CST is invoked. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3855 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Fixing problem detected by perl -cw .goodale2004-08-25
| | | | git-svn-id: http://svn.cactuscode.org/flesh/trunk@3854 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Trying to bring the condiguration stuff up to standard.goodale2004-08-18
| | | | | | | | Now should be consistent with docs (once I update those), plus prints out messages output by scripts. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3845 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Give somewhat better error message if a thorn's configuration script couldn'ttradke2004-05-17
| | | | | | | be run successfully. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3737 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Latest changes from Yaakoub.goodale2004-05-03
| | | | | | | | Added true topological sorting of thorns. Proper error logging from configuration scripts. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3685 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Latest changes from Yaakoub.goodale2004-04-07
| | | | | | | | | | Error code of thorn-provided script is checked. LIBS and LIBDIRS should end up in correct places on link line. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3650 17b73243-c579-4c4c-a9d2-2d5706c11dac
* Implementation of configuration.ccl spec from Yaakoub Y El-Khamra.goodale2004-03-26
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3602 17b73243-c579-4c4c-a9d2-2d5706c11dac