From 5f9693d4a2c511f8f2ea069373807c5f36ac1459 Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 8 Nov 2006 00:59:28 +0000 Subject: Add Darwin stuff. Sync to current 1.0.7 --- .../bin/Darwin.Power.Macintosh/vncviewer.sh | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh (limited to 'x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh') diff --git a/x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh b/x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh new file mode 100755 index 0000000..0a9c1cc --- /dev/null +++ b/x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +# copy "vncviewer.sh" back over to "vncviewer" in case you delete or overwrite it +# via build.unix. etc + +dir=`dirname "$0"` + +if [ "X$DISPLAY" != "X" ]; then + "$dir/vncviewer.x11" "$@" +else + args="" + for a in "$@" + do + if echo "$a" | grep '^-' > /dev/null; then + args="$args $a" + elif echo "$a" | grep ':' > /dev/null; then + h=`echo "$a" | awk -F: '{print $1}'` + p=`echo "$a" | awk -F: '{print $2}'` + if [ "X$p" != "X" ]; then + if [ $p -lt 5900 ]; then + p=`expr $p + 5900` + fi + fi + args="$args $h:$p" + else + args="$args $a" + fi + done + "$dir/../../MacOSX/Chicken of the VNC.app/Contents/MacOS/Chicken of the VNC" $args +fi -- cgit v1.2.1