Changeset 768
- Timestamp:
- 08/15/07 00:02:29 (1 year ago)
- Files:
-
- trunk/docs/ChangeLog (modified) (1 diff)
- trunk/sss/install.d (modified) (2 diffs)
- trunk/sss/main.d (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/ChangeLog
r766 r768 12 12 - Rebuild: Fixed a crash bug with the highly-uncommon pragmas 13 13 containing declarations (see ticket #117). 14 - Added --config file for testing alternative dsss.conf's (see ticket 15 #109). 14 16 15 17 0.70 from 0.69: trunk/sss/install.d
r760 r768 39 39 40 40 /** Entry into the "install" command */ 41 int install(char[][] buildElems, char[] pname = null, char[][]* subManifest = null)41 int install(char[][] buildElems, DSSSConf conf = null, char[] pname = null, char[][]* subManifest = null) 42 42 { 43 43 // get the configuration 44 DSSSConf conf = readConfig(buildElems); 44 if (conf is null) 45 conf = readConfig(buildElems); 45 46 46 47 // get the corresponding sources … … 189 190 char[] origcwd = getcwd(); 190 191 chdir(build); 191 int installret = install(null, pname, &manifest);192 int installret = install(null, null, pname, &manifest); 192 193 if (installret) return installret; 193 194 chdir(origcwd); trunk/sss/main.d
r757 r768 73 73 /** Elements to build/install/something */ 74 74 char[][] buildElems; 75 76 /** Overridden dsss.conf to use */ 77 char[] useDSSSConf = null; 78 79 char[] val; 75 80 76 81 for (int i = 1; i < args.length; i++) { … … 110 115 usage(); 111 116 return 0; 117 118 } else if (parseArg(arg, "config", true, &val)) { 119 useDSSSConf = val.dup; 112 120 113 121 } else if (arg == "build") { … … 159 167 } else { 160 168 /* generic options */ 161 char[] val;162 169 if (argIsHelp()) { 163 170 usage(); … … 260 267 "lib "; 261 268 } 269 270 // if a specific dsss.conf file was requested, use it 271 DSSSConf conf = null; 272 if (useDSSSConf != "") { 273 writefln("WARNING: The --config option is only recommended for testing, and should NOT be"); 274 writefln(" a part of your general build routine."); 275 conf = readConfig(buildElems, false, useDSSSConf); 276 } 262 277 263 278 switch (command) { 264 279 case cmd_t.BUILD: 265 return sss.build.build(buildElems );280 return sss.build.build(buildElems, conf); 266 281 break; 267 282 268 283 case cmd_t.CLEAN: 269 return sss.clean.clean( );284 return sss.clean.clean(conf); 270 285 break; 271 286 272 287 case cmd_t.DISTCLEAN: 273 return sss.clean.distclean( );288 return sss.clean.distclean(conf); 274 289 break; 275 290 276 291 case cmd_t.INSTALL: 277 return sss.install.install(buildElems );292 return sss.install.install(buildElems, conf); 278 293 break; 279 294 280 295 case cmd_t.BINSTALL: 281 296 { 282 int bret = sss.build.build(buildElems );297 int bret = sss.build.build(buildElems, conf); 283 298 if (bret) return bret; 284 return sss.install.install(buildElems );299 return sss.install.install(buildElems, conf); 285 300 break; 286 301 } … … 325 340 DSSS Options: 326 341 --help|-h: Display this help. 342 --config=<alternative dsss.conf file>: Should be used for testing only. 327 343 Commands: 328 344 build: build all or some binaries or libraries … … 401 417 402 418 writefln( 403 ` Generic options (must proceedthe command):419 ` Generic options (must come after the command): 404 420 --help: display specific options and information 405 421 --prefix=<prefix>: set the install prefix
