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
This commit is contained in:
William S Fulton 2009-01-07 16:54:54 +00:00
commit f94edcd855
2 changed files with 6 additions and 6 deletions

View file

@ -56,7 +56,7 @@ int execute(char **argv,
{ {
#ifdef _WIN32 #ifdef _WIN32
#if 0 #if 1
PROCESS_INFORMATION pinfo; PROCESS_INFORMATION pinfo;
STARTUPINFO sinfo; STARTUPINFO sinfo;
BOOL ret; BOOL ret;
@ -110,7 +110,7 @@ int execute(char **argv,
return exitcode; return exitcode;
#else /* possibly slightly faster */ #else /* possibly slightly faster */
/* Should be portable */ /* needs fixing to quote commandline options to handle spaces in CCACHE_DIR etc */
int status = -2; int status = -2;
int fd, std_od = -1, std_ed = -1; int fd, std_od = -1, std_ed = -1;

View file

@ -74,7 +74,7 @@ checkstat() {
basetests() { basetests() {
echo "starting testsuite $testsuite" echo "starting testsuite $testsuite"
rm -rf .ccache rm -rf "$CCACHE_DIR"
checkstat 'cache hit' 0 checkstat 'cache hit' 0
checkstat 'cache miss' 0 checkstat 'cache miss' 0
@ -279,7 +279,7 @@ basetests() {
swigtests() { swigtests() {
echo "starting swig testsuite $testsuite" echo "starting swig testsuite $testsuite"
rm -rf .ccache rm -rf "$CCACHE_DIR"
checkstat 'cache hit' 0 checkstat 'cache hit' 0
checkstat 'cache miss' 0 checkstat 'cache miss' 0
@ -402,8 +402,8 @@ swigtests() {
rm -rf $TESTDIR rm -rf $TESTDIR
mkdir $TESTDIR mkdir $TESTDIR
cd $TESTDIR || exit 1 cd $TESTDIR || exit 1
mkdir .ccache CCACHE_DIR="ccache dir" # with space in directory name (like Windows default)
CCACHE_DIR=.ccache mkdir "$CCACHE_DIR"
export CCACHE_DIR export CCACHE_DIR
testsuite="base" testsuite="base"