diff options
Diffstat (limited to 'x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh')
-rwxr-xr-x | x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/.cpover | 7 | ||||
-rwxr-xr-x | x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/vncviewer.sh | 30 |
2 files changed, 37 insertions, 0 deletions
diff --git a/x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/.cpover b/x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/.cpover new file mode 100755 index 0000000..45ec5ae --- /dev/null +++ b/x11vnc/misc/enhanced_tightvnc_viewer/bin/Darwin.Power.Macintosh/.cpover @@ -0,0 +1,7 @@ +#!/bin/sh + +cp -p vncviewer.sh vncviewer +pwd +ls -l vncviewer.sh vncviewer + +(cd ../Darwin.i386; .cpover) 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 |