summaryrefslogtreecommitdiff
path: root/BUILD/SETUP.sh
diff options
context:
space:
mode:
authorunknown <tsmith@maint2.mysql.com>2006-08-30 23:14:29 +0200
committerunknown <tsmith@maint2.mysql.com>2006-08-30 23:14:29 +0200
commit4e16868d88425ff5075fccc348ddb09acc3e7bf7 (patch)
treea9d5192782806d628494443abbf62ecb48be0520 /BUILD/SETUP.sh
parenta10a5cb663fbb953e317568f35041b87d2d79a60 (diff)
parent077b649aef8c7432e8b08606465d5954d07289ed (diff)
downloadmariadb-git-4e16868d88425ff5075fccc348ddb09acc3e7bf7.tar.gz
Merge maint2.mysql.com:/data/localhome/tsmith/bk/bfx/41
into maint2.mysql.com:/data/localhome/tsmith/bk/bfx/50 BUILD/SETUP.sh: Auto merged mysql-test/r/ctype_ucs.result: Auto merged mysql-test/t/ctype_ucs.test: Auto merged BUILD/check-cpu: Manual merge.
Diffstat (limited to 'BUILD/SETUP.sh')
-rwxr-xr-xBUILD/SETUP.sh12
1 files changed, 3 insertions, 9 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 57061f3dbff..8055f337821 100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-if ! test -f sql/mysqld.cc
+if test ! -f sql/mysqld.cc
then
echo "You must run this script from the MySQL top-level directory"
exit 1
@@ -122,12 +122,6 @@ fi
# (returns 0 if finds lines)
if ccache -V > /dev/null 2>&1
then
- if ! (echo "$CC" | grep "ccache" > /dev/null)
- then
- CC="ccache $CC"
- fi
- if ! (echo "$CXX" | grep "ccache" > /dev/null)
- then
- CXX="ccache $CXX"
- fi
+ echo "$CC" | grep "ccache" > /dev/null || CC="ccache $CC"
+ echo "$CXX" | grep "ccache" > /dev/null || CXX="ccache $CXX"
fi