Changeset 570


Ignore:
Timestamp:
Oct 10, 2006, 4:47:12 AM (19 years ago)
Author:
bird
Message:

don't forget BEGINLIBPATH.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/envos2.cmd

    r548 r570  
    4747
    4848/* kBuild path. */
    49 if (EnvGet("PATH_KBUILD") = "") then 
     49if (EnvGet("PATH_KBUILD") = "") then
    5050do
    5151    call EnvSet 0, "PATH_KBUILD", GetScriptDir();
    5252end
    53 if (  FileExists(EnvGet("PATH_KBUILD")||"\footer.kmk") = 0, 
    54     | FileExists(EnvGet("PATH_KBUILD")||"\header.kmk") = 0, 
    55     | FileExists(EnvGet("PATH_KBUILD")||"\rules.kmk") = 0) then 
     53if (  FileExists(EnvGet("PATH_KBUILD")||"\footer.kmk") = 0,
     54    | FileExists(EnvGet("PATH_KBUILD")||"\header.kmk") = 0,
     55    | FileExists(EnvGet("PATH_KBUILD")||"\rules.kmk") = 0) then
    5656do
    5757    say "kBuild: error: PATH_KBUILD ("||EnvGet("PATH_KBUILD")||") is not point to a populated kBuild directory.";
     
    9292if (EnvGet("BUILD_TARGET_ARCH") = "") then
    9393do
    94     select 
     94    select
    9595        when (  EnvGet("BUILD_TARGET_CPU") = "i386",
    9696              | EnvGet("BUILD_TARGET_CPU") = "i486",
     
    9898              | EnvGet("BUILD_TARGET_CPU") = "i686",
    9999              | EnvGet("BUILD_TARGET_CPU") = "i786",
    100               | EnvGet("BUILD_TARGET_CPU") = "i886") then 
     100              | EnvGet("BUILD_TARGET_CPU") = "i886") then
    101101        do
    102102            call EnvSet 0, "BUILD_TARGET_ARCH", "x86";
     
    106106              | EnvGet("BUILD_TARGET_CPU") = "k8l",
    107107              | EnvGet("BUILD_TARGET_CPU") = "k9",
    108               | EnvGet("BUILD_TARGET_CPU") = "k10") then 
     108              | EnvGet("BUILD_TARGET_CPU") = "k10") then
    109109        do
    110110            call EnvSet 0, "BUILD_TARGET_ARCH", "amd64";
     
    134134say "dbg: PATH="||EnvGet("PATH");
    135135
     136/* The BEGINLIBPATH. */
     137call EnvAddFront 0, "BEGINLIBPATH", sPlatformBin;
     138say "dbg: BEGINLIBPATH="||EnvGet("BEGINLIBPATH");
     139
    136140/* Sanity check */
    137 if (DirExists(sPlatformBin) = 0) then 
     141if (DirExists(sPlatformBin) = 0) then
    138142do
    139143    say "kBuild: warning: The bin directory for this platform doesn't exist. ("||sPlatformBin||")";
     
    144148    do i = 1 to words(sPrograms)
    145149        sProgram = word(sPrograms, i);
    146         if (FileExists(sPlatformBin||"\"||sProgram||".exe") = 0) then 
     150        if (FileExists(sPlatformBin||"\"||sProgram||".exe") = 0) then
    147151        do
    148152            say "kBuild: warning: The "||sProgram||" program doesn't exit for this platform. ("||sPlatformBin||")";
     
    152156
    153157
    154 /* 
    155  * Execute command if any arguments was given. 
     158/*
     159 * Execute command if any arguments was given.
    156160 */
    157161parse arg sArgs
Note: See TracChangeset for help on using the changeset viewer.