From f015e1ff0345e5ace58d4df0ea4bfc09b5f4d760 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 10 Jan 2007 18:33:03 -0500 Subject: ENH: Change permission for getdisplay.sh to make the runtimescript work --- Modules/CPack.RuntimeScript.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Modules/CPack.RuntimeScript.in b/Modules/CPack.RuntimeScript.in index 9195d52..1ce43bc 100755 --- a/Modules/CPack.RuntimeScript.in +++ b/Modules/CPack.RuntimeScript.in @@ -22,12 +22,17 @@ else 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 -- cgit v0.12