Changeset 989
- Timestamp:
- Aug 16, 2011, 3:28:04 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/configure.cmd (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.cmd
r988 r989 425 425 --------------------------------------------------------------------------*/ 426 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 427 453 if (aArgs \= "") then do 428 454 call TokenizeString aArgs, 'G.Args' … … 431 457 a = G.Args.i 432 458 if (StartsWith(a, '-')) then do 433 a = strip(a, 'L', '-')434 459 opt = '' 435 typ = ' P' /* path */460 typ = ' 436 461 select 437 when (a == "prefix") then 438 opt = 'G.QT_INSTALL_PREFIX' 439 when (a == "datadir") then 440 opt = 'G.QT_INSTALL_DATA' 441 when (a == "libdir") then 442 opt = 'G.QT_INSTALL_LIBS' 443 when (a == "headerdir") then 444 opt = 'G.QT_INSTALL_HEADERS' 445 when (a == "bindir") then 446 opt = 'G.QT_INSTALL_BINS' 447 when (a == "plugindir") then 448 opt = 'G.QT_INSTALL_PLUGINS' 449 when (a == "importdir") then 450 opt = 'G.QT_INSTALL_IMPORTS' 451 when (a == "demosdir") then 452 opt = 'G.QT_INSTALL_DEMOS' 453 when (a == "examplesdir") then 454 opt = 'G.QT_INSTALL_EXAMPLES' 455 when (a == "docdir") then 456 opt = 'G.QT_INSTALL_DOCS' 457 when (a == "translationdir") then 458 opt = 'G.QT_INSTALL_TRANSLATIONS' 459 when (a == "sysconfdir" | a == "settingsdir") then 460 opt = 'G.QT_INSTALL_SETTINGS' 461 when (a == "sysconffile") then 462 opt = 'G.QT_INSTALL_SYSCONFFILE' 463 otherwise typ = '' 462 when (a == "-h" | a == "-help" | a == "--help") then 463 opt = 'F G.OPT_HELP' 464 465 when (a == "-release") then 466 opt = 'F~ G.CFG_DEBUG' 467 when (a == "-debug") then 468 opt = 'F G.CFG_DEBUG' 469 when (a == "-debug-and-release") then 470 opt = 'F G.CFG_DEBUG_RELEASE' 471 when (a == "-developer-build") then 472 opt = 'F G.CFG_DEV' 473 474 when (a == "-prefix") then 475 opt = 'P G.QT_INSTALL_PREFIX' 476 when (a == "-bindir") then 477 opt = 'P G.QT_INSTALL_BINS' 478 when (a == "-libdir") then 479 opt = 'P G.QT_INSTALL_LIBS' 480 when (a == "-docdir") then 481 opt = 'P G.QT_INSTALL_DOCS' 482 when (a == "-headerdir") then 483 opt = 'P G.QT_INSTALL_HEADERS' 484 when (a == "-plugindir") then 485 opt = 'P G.QT_INSTALL_PLUGINS' 486 when (a == "-importdir") then 487 opt = 'P G.QT_INSTALL_IMPORTS' 488 when (a == "-datadir") then 489 opt = 'P G.QT_INSTALL_DATA' 490 when (a == "-translationdir") then 491 opt = 'P G.QT_INSTALL_TRANSLATIONS' 492 when (a == "-sysconfdir" | a == "settingsdir") then 493 opt = 'P G.QT_INSTALL_SETTINGS' 494 when (a == "-examplesdir") then 495 opt = 'P G.QT_INSTALL_EXAMPLES' 496 when (a == "-demosdir") then 497 opt = 'P G.QT_INSTALL_DEMOS' 498 when (a == "-sysconffile") then 499 opt = 'P G.QT_INSTALL_SYSCONFFILE' 500 501 otherwise nop 464 502 end 465 if (typ == '') then do 503 parse var opt typ opt 504 if (opt == '' | typ == '') then do 466 505 call SayErr "ERROR: Invalid option '"G.Args.i"'." 467 506 call Done 1 468 507 end 508 509 510 511 512 469 513 if (typ == 'P') then do 514 470 515 if (i == G.Args.0) then do 471 call SayErr "ERROR: Option '"G.Args.i"' needs a path value."516 call SayErr "ERROR: Option '"G.Args.i"' needs a path." 472 517 call Done 1 473 518 end … … 626 671 call CopyDir G.RelPath"\mkspecs\modules", G.OutPath"\mkspecs\modules" 627 672 call DeleteDir G.OutPath"\mkspecs\default" 628 629 /*@todo630 # symlink the doc directory631 rm -rf "$outpath/doc"632 ln -s "$relpath/doc" "$outpath/doc"633 634 # make sure q3porting.xml can be found635 mkdir -p "$outpath/tools/porting/src"636 rm -f "$outpath/tools/porting/src/q3porting.xml"637 ln -s "$relpath/tools/porting/src/q3porting.xml" "$outpath/tools/porting/src"638 */639 673 end 640 674 … … 873 907 --------------------------------------------------------------------------*/ 874 908 875 /* next, emit a usage message if something failed. */909 /* next, emit a usage message if ed. */ 876 910 if (G.OPT_HELP == "yes") then do 877 /* @todo */ 878 call SayLog "TODO: Help message" 911 signal ShowHelp 879 912 end 880 913 … … 2550 2583 SayVerbose: procedure expose (Globals) 2551 2584 parse arg str, noeol 2552 if (G.Verbose ) then call SayLog str, noeol2585 if (G.Verbose) then call SayLog str, noeol 2553 2586 return 2554 2587
Note:
See TracChangeset
for help on using the changeset viewer.
