Changeset 756
- Timestamp:
- 08/12/07 03:08:31 (1 year ago)
- Files:
-
- trunk/docs/ChangeLog (modified) (1 diff)
- trunk/docs/README.software_engineers (modified) (2 diffs)
- trunk/sss/conf.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/ChangeLog
r755 r756 1 1 SVN from 0.70: 2 2 - Fixed 'set' and 'add' commands (see ticket #102). 3 - Added 'error' and 'warn' hook commands (see ticket #103). 3 4 4 5 0.70 from 0.69: trunk/docs/README.software_engineers
r754 r756 245 245 There are also a number of special, builtin commands available. 246 246 247 = warn and error = 248 249 A warning or error condition can be specified by the hook commands 'warn' and 250 'error'. 251 252 An example of 'error': 253 version (!Posix) { 254 prebuild=error Only POSIX is supported. 255 } 256 257 An example of 'warn': 258 version (Posix) { 259 prebuild=warn POSIX support is untested. 260 } 261 262 When an error hook command is run, building of course halts. 263 247 264 = install = 248 265 … … 345 362 These are included at the top of the dsss.conf file. Common settings are 'name' 346 363 (the name of the software package) and 'version'. 364 365 There is also a global setting available to specify which sections should be 366 built normally, 'defaulttargets'. Without it, all sections will be built by 367 default. The section list is simply separated by spaces: 368 defaulttargets=xlib xbin 347 369 348 370 It is also possible to specify global settings later in the dsss.conf file by trunk/sss/conf.d
r755 r756 625 625 626 626 } else if (tokens.length == 3 && 627 tokens[1] == ":") {628 // a command629 if (tokens[0] == "warn") {630 // a warning631 writefln("WARNING: %s", tokens[2]);632 } else if (tokens[0] == "error") {633 // an error634 writefln("ERROR: %s", tokens[2]);635 }636 637 } else if (tokens.length == 3 &&638 627 tokens[1] == "=") { 639 628 // a setting … … 863 852 // if it's a .d file, -exec it 864 853 saySystemDie(dsss_build ~ "-full -exec " ~ cmd); 854 855 } else if (cmd.length > 5 && 856 cmd[0..5] == "warn ") { 857 writefln("WARNING: %s", cmd[5..$]); 858 859 } else if (cmd.length > 6 && 860 cmd[0..6] == "error ") { 861 writefln("ERROR: %s", cmd[6..$]); 862 exit(1); 865 863 866 864 } else if (cmd.length > 8 &&
