diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2009-01-07 16:54:54 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2009-01-07 16:54:54 +0000 |
commit | f94edcd85559cec9fb1f409394c8a36a457acebc (patch) | |
tree | 8ed0db6f0af68024e86e0699cc864d8403abd476 /CCache | |
parent | a80aa441aa9cfb95bed9ace464aa37e7616b1f9c (diff) | |
download | swig-f94edcd85559cec9fb1f409394c8a36a457acebc.tar.gz |
Fix spaces in CCACHE_DIR and probably other places
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11037 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'CCache')
-rw-r--r-- | CCache/execute.c | 4 | ||||
-rwxr-xr-x | CCache/test.sh | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/CCache/execute.c b/CCache/execute.c index 214b233b4..5a5592bf5 100644 --- a/CCache/execute.c +++ b/CCache/execute.c @@ -56,7 +56,7 @@ int execute(char **argv, { #ifdef _WIN32 -#if 0 +#if 1 PROCESS_INFORMATION pinfo; STARTUPINFO sinfo; BOOL ret; @@ -110,7 +110,7 @@ int execute(char **argv, return exitcode; #else /* possibly slightly faster */ - /* Should be portable */ + /* needs fixing to quote commandline options to handle spaces in CCACHE_DIR etc */ int status = -2; int fd, std_od = -1, std_ed = -1; diff --git a/CCache/test.sh b/CCache/test.sh index 0daa30561..9581c85e3 100755 --- a/CCache/test.sh +++ b/CCache/test.sh @@ -74,7 +74,7 @@ checkstat() { basetests() { echo "starting testsuite $testsuite" - rm -rf .ccache + rm -rf "$CCACHE_DIR" checkstat 'cache hit' 0 checkstat 'cache miss' 0 @@ -279,7 +279,7 @@ basetests() { swigtests() { echo "starting swig testsuite $testsuite" - rm -rf .ccache + rm -rf "$CCACHE_DIR" checkstat 'cache hit' 0 checkstat 'cache miss' 0 @@ -402,8 +402,8 @@ swigtests() { rm -rf $TESTDIR mkdir $TESTDIR cd $TESTDIR || exit 1 -mkdir .ccache -CCACHE_DIR=.ccache +CCACHE_DIR="ccache dir" # with space in directory name (like Windows default) +mkdir "$CCACHE_DIR" export CCACHE_DIR testsuite="base" |