diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-04-07 19:31:52 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2010-04-07 19:31:52 +0000 |
commit | ea10e2c2f488d524cbd8bba474c2c95cc0c85159 (patch) | |
tree | 1a41c901051cb85584221c94d9cad6e86dcc84ed /BuildScripts | |
parent | edb9eb2865f530d6b12f4401d86f4dcae01a0ff9 (diff) |
[Author: dmaclach]
Fix up plistcompiler so that it works with paths with spaces in them.
R=thomasvl
DELTA=1 (0 added, 0 deleted, 1 changed)
Diffstat (limited to 'BuildScripts')
-rwxr-xr-x | BuildScripts/PListCompiler.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BuildScripts/PListCompiler.sh b/BuildScripts/PListCompiler.sh index f3ca6cb..80291f9 100755 --- a/BuildScripts/PListCompiler.sh +++ b/BuildScripts/PListCompiler.sh @@ -32,7 +32,8 @@ set -o errexit set -o nounset -GTM_PLIST_COMPILER_INCLUDE_PATHS=${GTM_PLIST_COMPILER_INCLUDE_PATHS:="."} +PWD=pwd +GTM_PLIST_COMPILER_INCLUDE_PATHS=${GTM_PLIST_COMPILER_INCLUDE_PATHS:=PWD} if [[ $# -ne 2 && $# -ne 0 ]] ; then echo "usage: ${0} INPUT OUTPUT" >&2 @@ -58,4 +59,4 @@ done IFS=$SaveIFS # run gcc and strip out lines starting with # that the preprocessor leaves behind. -eval gcc ${split_include_paths} -E -x c "${SCRIPT_INPUT_FILE}" | sed 's/^#.*//g' > "${SCRIPT_OUTPUT_FILE}" +gcc ${split_include_paths} -E -x c "${SCRIPT_INPUT_FILE}" | sed 's/^#.*//g' > "${SCRIPT_OUTPUT_FILE}" |