[cmake-commits] andy committed CPack.RuntimeScript.in 1.1 1.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Jan 10 18:33:06 EST 2007
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv4294/Modules
Modified Files:
CPack.RuntimeScript.in
Log Message:
ENH: Change permission for getdisplay.sh to make the runtimescript work
Index: CPack.RuntimeScript.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CPack.RuntimeScript.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CPack.RuntimeScript.in 10 Jan 2007 20:30:25 -0000 1.1
+++ CPack.RuntimeScript.in 10 Jan 2007 23:33:03 -0000 1.2
@@ -22,12 +22,17 @@
echo \$DISPLAY > "$TMP/display"
fi
__END_OF_GETDISPLAY_SCRIPT__
+chmod +x "$TMP/getdisplay.sh"
rm -f $TMP/display
open-x11 $TMP/getdisplay.sh || \
open -a XDarwin $TMP/getdisplay.sh || \
echo ":0" > $TMP/display
-while [ "$?" == "0" -a ! -f $TMP/display ]; do sleep 1; done
+while [ "$?" == "0" -a ! -f $TMP/display ];
+do
+ #echo "Waiting for display $TMP/display"
+ sleep 1;
+done
export "DISPLAY=`cat $TMP/display`"
ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11
More information about the Cmake-commits
mailing list