diff options
author | runge <runge> | 2006-11-08 00:59:28 +0000 |
---|---|---|
committer | runge <runge> | 2006-11-08 00:59:28 +0000 |
commit | 5f9693d4a2c511f8f2ea069373807c5f36ac1459 (patch) | |
tree | ccb24992fb1bda1c8d0812cf171bbab5c0894423 /x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh | |
parent | 2635ae4407751cc16745918114fbc1ce31eb7c4f (diff) | |
download | libtdevnc-5f9693d4a2c511f8f2ea069373807c5f36ac1459.tar.gz libtdevnc-5f9693d4a2c511f8f2ea069373807c5f36ac1459.zip |
Add Darwin stuff. Sync to current 1.0.7
Diffstat (limited to 'x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh')
-rwxr-xr-x | x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh | 30 |
1 files changed, 30 insertions, 0 deletions
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 |