Rev 4 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#! /bin/sh /usr/share/dpatch/dpatch-run
## confusing_-h.dpatch by <holmgren@debian.org>
##
## DP: Improve handling of -h[e[l[p]]]
@DPATCH@
diff -urNad trunk~/scripts/ssvnc trunk/scripts/ssvnc
--- trunk~/scripts/ssvnc 2009-12-27 21:38:58.000000000 +0100
+++ trunk/scripts/ssvnc 2010-02-06 20:38:41.000000000 +0100
@@ -8,7 +8,8 @@
#
# See ssvnc_cmd for details.
#
-if [ "X$1" = "X-help" -o "X$1" = "X-h" ]; then
+helpflag="-help"
+if [ ${#1} -gt 1 -a "$1${helpflag##$1}" = $helpflag ]; then
cat << END
ssvnc - a GUI wrapper for SSL and SSH VNC connections.
@@ -106,7 +107,7 @@
exit 0
fi
if [ "X$1" = "X-ssh" ]; then
- if [ "X$2" = "X-help" -o "X$2" = "X-h" ]; then
+ if [ ${#2} -gt 1 -a "$2${helpflag##$2}" = $helpflag ]; then
cat << END
sshvnc - a GUI wrapper for SSH VNC connections.
@@ -124,7 +125,7 @@
fi
if [ "X$1" = "X-ts" -o "X$1" = "X-tso" ]; then
- if [ "X$2" = "X-help" -o "X$2" = "X-h" ]; then
+ if [ ${#2} -gt 1 -a "$2${helpflag##$2}" = $helpflag ]; then
cat << END
tsvnc - a GUI wrapper for SSH VNC connections using x11vnc Terminal Services.