aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-28 18:58:23 +0000
committerrsc <devnull@localhost>2005-02-28 18:58:23 +0000
commitc530c004213e6e95775d7a6402923d0d58d1e114 (patch)
treee9a47d2a8380577ba44c1d7ddc8e88976febf5fc /bin
parent10ff532fdcff507f0bc55be5faef3782cd2e595f (diff)
downloadplan9port-c530c004213e6e95775d7a6402923d0d58d1e114.tar.gz
plan9port-c530c004213e6e95775d7a6402923d0d58d1e114.tar.bz2
plan9port-c530c004213e6e95775d7a6402923d0d58d1e114.zip
gv has decided to rename all its -foo options to --foo. sigh.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/psv12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/psv b/bin/psv
index 176d4934..c8a35d3a 100755
--- a/bin/psv
+++ b/bin/psv
@@ -1,3 +1,13 @@
#!/bin/sh
-gv -nosafer -swap -style $PLAN9/lib/gv.style -ad $PLAN9/lib/gv.resource "$@"
+#
+# gv has decided to rename all its -foo options to --foo.
+#
+if gv -v 2>/dev/null | grep Usage >/dev/null
+then
+ m=-
+else
+ m=''
+fi
+
+gv $m-nosafer $m-swap $m-style $PLAN9/lib/gv.style $m-ad $PLAN9/lib/gv.resource "$@"