[Cmake-commits] [cmake-commits] alex committed CPack.RuntimeScript.in 1.3 1.4
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Jun 9 15:50:13 EDT 2008
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv29662
Modified Files:
CPack.RuntimeScript.in
Log Message:
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
Index: CPack.RuntimeScript.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CPack.RuntimeScript.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** CPack.RuntimeScript.in 11 Apr 2008 14:41:28 -0000 1.3
--- CPack.RuntimeScript.in 9 Jun 2008 19:50:11 -0000 1.4
***************
*** 7,11 ****
version=`sw_vers -productVersion`
! if [ "$?" == "0" ]; then
major=${version%%\.*}
rest=${version#*\.}
--- 7,11 ----
version=`sw_vers -productVersion`
! if [ "$?" = "0" ]; then
major=${version%%\.*}
rest=${version#*\.}
***************
*** 37,41 ****
mkdir -p "$TMP"
! if [ "\$DISPLAY"x == "x" ]; then
echo :0 > "$TMP/display"
else
--- 37,41 ----
mkdir -p "$TMP"
! if [ "\$DISPLAY"x = "x" ]; then
echo :0 > "$TMP/display"
else
***************
*** 49,53 ****
echo ":0" > $TMP/display
! while [ "$?" == "0" -a ! -f $TMP/display ];
do
#echo "Waiting for display $TMP/display"
--- 49,53 ----
echo ":0" > $TMP/display
! while [ "$?" = "0" -a ! -f $TMP/display ];
do
#echo "Waiting for display $TMP/display"
More information about the Cmake-commits
mailing list