VirtualBox

Changeset 26687 in vbox for trunk


Ignore:
Timestamp:
Feb 22, 2010 7:27:59 PM (15 years ago)
Author:
vboxsync
Message:

configure: make env.sh sh-compatible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r25938 r26687  
    359359  log_success "Determined build machine: $OS.$BUILD_MACHINE, target machine: $OS.$TARGET_MACHINE"
    360360
    361   echo "export BUILD_PLATFORM=\"$OS\"" >> $ENV
    362   echo "export BUILD_PLATFORM_ARCH=\"$BUILD_MACHINE\"" >> $ENV
    363   echo "export BUILD_TARGET=\"$OS\"" >> $ENV
    364   echo "export BUILD_TARGET_ARCH=\"$TARGET_MACHINE\"" >> $ENV
    365   echo "export BUILD_TARGET_CPU=\"$TARGET_CPU\"" >> $ENV
    366   echo "export BUILD_TYPE=\"$BUILD_TYPE\"" >> $ENV
     361  echo "BUILD_PLATFORM=\"$OS\"" >> $ENV
     362  echo "export BUILD_PLATFORM"
     363  echo "BUILD_PLATFORM_ARCH=\"$BUILD_MACHINE\"" >> $ENV
     364  echo "export BUILD_PLATFORM_ARCH" >> $ENV
     365  echo "BUILD_TARGET=\"$OS\"" >> $ENV
     366  echo "export BUILD_TARGET" >> $ENV
     367  echo "BUILD_TARGET_ARCH=\"$TARGET_MACHINE\"" >> $ENV
     368  echo "export BUILD_TARGET_ARCH" >> $ENV
     369  echo "BUILD_TARGET_CPU=\"$TARGET_CPU\"" >> $ENV
     370  echo "export BUILD_TARGET_CPU" >> $ENV
     371  echo "BUILD_TYPE=\"$BUILD_TYPE\"" >> $ENV
     372  echo "export BUILD_TYPE" >> $ENV
    367373}
    368374
     
    16161622  if which_wrapper "$KBUILDDIR/bin/$OS.$BUILD_MACHINE/kmk" > /dev/null; then
    16171623    KBUILDDIR_BIN="$KBUILDDIR/bin/$OS.$BUILD_MACHINE"
    1618     echo "export PATH_KBUILD=\"`cd $KBUILDDIR ; pwd`\"" >> $ENV
    1619     echo "export PATH_DEVTOOLS=\"$DEVDIR\"" >> $ENV
     1624    echo "PATH_KBUILD=\"`cd $KBUILDDIR ; pwd`\"" >> $ENV
     1625    echo "export PATH_KBUILD" >> $ENV
     1626    echo "PATH_DEVTOOLS=\"$DEVDIR\"" >> $ENV
     1627    echo "export PATH_DEVTOOLS" >> $ENV
    16201628    echo "path_kbuild_bin=\"\$PATH_KBUILD/bin/\$BUILD_TARGET.\$BUILD_PLATFORM_ARCH\"" >> $ENV
    1621     echo "export PATH_KBUILD_BIN=\"\$path_kbuild_bin\"" >> $ENV
     1629    echo "export PATH_KBUILD_BIN" >> $ENV
    16221630    echo "path_dev_bin=\"\$PATH_DEVTOOLS/\$BUILD_TARGET.\$BUILD_PLATFORM_ARCH\"/bin" >> $ENV
    16231631    if [ "$OS" = "solaris" ]; then
     
    16371645    # Currently there are no amd64 kBuild bins. So use the x86 variant in any case.
    16381646    KBUILDDIR_BIN="$KBUILDDIR/bin/$OS.x86"
    1639     echo "export PATH_KBUILD=\"`cd $KBUILDDIR ; pwd`\"" >> $ENV
    1640     echo "export PATH_DEVTOOLS=\"$DEVDIR\"" >> $ENV
     1647    echo "PATH_KBUILD=\"`cd $KBUILDDIR ; pwd`\"" >> $ENV
     1648    echo "export PATH_KBUILD" >> $ENV
     1649    echo "PATH_DEVTOOLS=\"$DEVDIR\"" >> $ENV
     1650    echo "export PATH_DEVTOOLS" >> $ENV
    16411651    echo "path_kbuild_bin=\"\$PATH_KBUILD/bin/\$BUILD_TARGET.x86\"" >> $ENV
    1642     echo "export PATH_KBUILD_BIN=\"\$path_kbuild_bin\"" >> $ENV
     1652    echo "PATH_KBUILD_BIN=\"\$path_kbuild_bin\"" >> $ENV
     1653    echo "export PATH_KBUILD_BIN" >> $ENV
    16431654    echo "path_dev_bin=\"\$PATH_DEVTOOLS/\$BUILD_TARGET.\$BUILD_PLATFORM_ARCH\"/bin" >> $ENV
    16441655    echo "echo \"\$PATH\" | grep -q \"\$path_kbuild_bin\" || PATH=\"\$path_kbuild_bin:\$PATH\"" >> $ENV
     
    18171828  fi
    18181829  export WINEPREFIX="${ODIR}wine.$BUILD_MACHINE"
    1819   echo "export WINEPREFIX=\"${ODIR}wine.$BUILD_MACHINE\"" >> $ENV
     1830  echo "WINEPREFIX=\"${ODIR}wine.$BUILD_MACHINE\"" >> $ENV
     1831  echo "export WINEPREFIX" >> $ENV
    18201832  rm -rf $WINEPREFIX
    18211833  mkdir -p $WINEPREFIX
     
    22632275# if we will be writing to a different out directory then set this up now
    22642276if [ $OUT_PATH_OVERRIDE -eq 1 ]; then
    2265   echo "export AUTOCFG=$OUT_PATH/AutoConfig.kmk" >> $ENV
    2266   echo "export LOCALCFG=$OUT_PATH/LocalConfig.kmk" >> $ENV
    2267   echo "export PATH_OUT_BASE=$OUT_PATH" >> $ENV
     2277  echo "AUTOCFG=$OUT_PATH/AutoConfig.kmk" >> $ENV
     2278  echo "export AUTOCFG" >> $ENV
     2279  echo "LOCALCFG=$OUT_PATH/LocalConfig.kmk" >> $ENV
     2280  echo "export LOCALCFG" >> $ENV
     2281  echo "PATH_OUT_BASE=$OUT_PATH" >> $ENV
     2282  echo "export PATH_OUT_BASE" >> $ENV
    22682283fi
    22692284
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette