Ticket #723: configure.patch

File configure.patch, 2.6 KB (added by mathewblack@…, 13 years ago)

Added some quotes

  • configure

     
    170170
    171171# get cwd and the source directory
    172172currentDir=`pwd`
    173 cd `dirname $0`
     173cd `dirname "$0"`
    174174sourceDir=`pwd`
    175 cd $currentDir
     175cd "$currentDir"
    176176
    177177# default parameter values
    178178#
     
    265265else
    266266    outputDir=$currentDir
    267267fi
    268 buildOutputDir=$outputDir/build
    269 buildAttributesDir=$outputDir/attributes
    270 mkdir -p $buildOutputDir || exit 1
     268buildOutputDir="$outputDir/build"
     269buildAttributesDir="$outputDir/attributes"
     270mkdir -p "$buildOutputDir" || exit 1
    271271
    272272# build cross tools from sources
    273273if [ -n "$buildCrossTools" ]; then
    274274    "$buildCrossToolsScript" $buildCrossToolsMachine "$sourceDir" \
    275         "$buildCrossTools" $outputDir || exit 1
    276     crossToolsPrefix=$outputDir/cross-tools/bin/${haikuGCCMachine}-
     275        "$buildCrossTools" "$outputDir" || exit 1
     276    crossToolsPrefix="$outputDir/cross-tools/bin/${haikuGCCMachine}-"
    277277fi
    278278
    279279# cross tools
     
    289289standard_gcc_settings
    290290
    291291# Generate BuildConfig
    292 cat << EOF > $buildOutputDir/BuildConfig
     292cat << EOF > "$buildOutputDir/BuildConfig"
    293293# BuildConfig
    294294# Note: This file has been automatically generated by configure.
    295295
    296296FLOPPY_PATH         ?= "${floppy}" ;
    297 BOCHS_DEBUG_HACK    ?= ${bochs_debug} ;
    298 INCLUDE_GPL_ADDONS  ?= ${include_gpl_addons} ;
    299 TARGET_PLATFORM     ?= ${target} ;
    300 HOST_PLATFORM       ?= ${buildPlatform} ;
     297BOCHS_DEBUG_HACK    ?= "${bochs_debug}" ;
     298INCLUDE_GPL_ADDONS  ?= "${include_gpl_addons}" ;
     299TARGET_PLATFORM     ?= "${target}" ;
     300HOST_PLATFORM       ?= "${buildPlatform}" ;
    301301
    302302HAIKU_GCC_RAW_VERSION   ?= ${haikuGCCVersion} ;
    303303HAIKU_GCC_MACHINE       ?= ${haikuGCCMachine} ;
     
    331331
    332332# Libgcc.a objects
    333333
    334 cat << EOF > $buildOutputDir/libgccObjects
     334cat << EOF > "$buildOutputDir/libgccObjects"
    335335# libgcc.a objects to be linked against libroot.so
    336336# Note: This file has been automatically generated by configure.
    337337
     
    343343timezoneSources="africa antarctica asia australasia europe northamerica
    344344    southamerica pacificnew etcetera factory backward"
    345345
    346 cat << EOF > $buildOutputDir/Timezones
     346cat << EOF > "$buildOutputDir/Timezones"
    347347# Timezones used for the build
    348348# Note: This file has been automatically generated by configure.
    349349
     
    354354for source in ${timezoneSources}; do
    355355    f=$sourceDir/src/data/etc/timezones/$source
    356356
    357 TZOBJECTS=`gawk '/^Zone/ { print $2 } /^Link/ { print $3 } ' $f `
     357TZOBJECTS=`gawk '/^Zone/ { print $2 } /^Link/ { print $3 } ' "$f" `
    358358
    359 cat << EOF >> $buildOutputDir/Timezones
     359cat << EOF >> "$buildOutputDir/Timezones"
    360360TZ_OBJECTS on <timezone-source>${source} ?= $TZOBJECTS ;
    361361EOF
    362362done