aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-20 20:20:51 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-20 20:20:51 +0000
commitaba51d6b60822f356f9a56080719f2617a9a94e3 (patch)
treed5b9fcde575c1312fb84df80c000281e5b4ab4fb
parent49bc4567bbbc5b05016cb99466c77411c9d577cb (diff)
use process id in build directory name to do better
-rwxr-xr-xtestcurl.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/testcurl.sh b/testcurl.sh
index a5ecd1775..32c10b89d 100755
--- a/testcurl.sh
+++ b/testcurl.sh
@@ -71,11 +71,13 @@ else
die
fi
+build="build-$$"
+
# remove any previous left-overs
-rm -rf build
+rm -rf $build
# create a dir to build in
-mkdir build
+mkdir $build
# get in the curl source tree root
cd curl
@@ -99,7 +101,7 @@ else
fi
# change to build dir
-cd ../build
+cd "../$build"
# run configure script
../curl/configure $1 2>&1
@@ -134,6 +136,6 @@ fi
cd ..
# delete build dir
-rm -rf build
+rm -rf "$build"
die