Changeset 94
- Timestamp:
- 04/27/07 16:37:37 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r93 r94 306 306 } elsif (/^--showpkgs/) { 307 307 $cmdopts{type} = 'd'; # d for 'diagnostic' or 'debug' or 'dump' 308 } elsif (/^--define/) { 309 # nothing to do? Can't see anything needed, we handle the actual definition later. 308 310 } else { 309 311 print "Long option $_ not handled\n"; … … 338 340 if ($prevopt eq '--buildroot') { 339 341 $cmdbuildroot = $_; 342 } elsif ($prevopt eq '--define') { 343 my ($macro,$value) = (/([a-z0-9_.-]+)(?:\s+(.+))?/); 344 if ($value) { 345 $specglobals{$macro} = $value; 346 } else { 347 warn "WARNING: missing value for macro $macro in --define! Ignoring.\n"; 348 } 340 349 } elsif ($prevopt eq '-i') { 341 350 $srcpkg = $_;
Note:
See TracChangeset
for help on using the changeset viewer.