summaryrefslogtreecommitdiffstats
path: root/Modules/CPack.RuntimeScript.in
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-06-09 19:50:11 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-06-09 19:50:11 (GMT)
commit05434489079708e9896d03b7fc9153ded1d960b4 (patch)
treedd3a470d700d79c05d4aa581415f316e2bbb7987 /Modules/CPack.RuntimeScript.in
parentd50785e26e68ba58aed6e59cb0cb8dcba7eb06a1 (diff)
downloadCMake-05434489079708e9896d03b7fc9153ded1d960b4.zip
CMake-05434489079708e9896d03b7fc9153ded1d960b4.tar.gz
CMake-05434489079708e9896d03b7fc9153ded1d960b4.tar.bz2
STYLE: apply patch from Thomas Klausner (NetBSD): use "=" for testing
strings for equality instead of "==" This also matches what the man page for test says "s1 = s2 True if the strings s1 and s2 are identical." Alex
Diffstat (limited to 'Modules/CPack.RuntimeScript.in')
-rwxr-xr-xModules/CPack.RuntimeScript.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CPack.RuntimeScript.in b/Modules/CPack.RuntimeScript.in
index fc3444a..72dd14e 100755
--- a/Modules/CPack.RuntimeScript.in
+++ b/Modules/CPack.RuntimeScript.in
@@ -6,7 +6,7 @@ CWD="`dirname \"$0\"`"
TMP=/tmp/$UID/TemporaryItems
version=`sw_vers -productVersion`
-if [ "$?" == "0" ]; then
+if [ "$?" = "0" ]; then
major=${version%%\.*}
rest=${version#*\.}
minor=${rest%%\.*}
@@ -36,7 +36,7 @@ cat << __END_OF_GETDISPLAY_SCRIPT__ > "$TMP/getdisplay.sh"
#!/bin/sh
mkdir -p "$TMP"
-if [ "\$DISPLAY"x == "x" ]; then
+if [ "\$DISPLAY"x = "x" ]; then
echo :0 > "$TMP/display"
else
echo \$DISPLAY > "$TMP/display"
@@ -48,7 +48,7 @@ open-x11 $TMP/getdisplay.sh || \
open -a XDarwin $TMP/getdisplay.sh || \
echo ":0" > $TMP/display
-while [ "$?" == "0" -a ! -f $TMP/display ];
+while [ "$?" = "0" -a ! -f $TMP/display ];
do
#echo "Waiting for display $TMP/display"
sleep 1;