summaryrefslogtreecommitdiffstats
path: root/graphics/pho/files
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2006-09-11 09:10:19 +0000
committerdanfe <danfe@FreeBSD.org>2006-09-11 09:10:19 +0000
commit7669f5f4a9d3aeec83e379f676e47677394ed0a8 (patch)
treeb333fbe60237b9238fee53dca50f7c91b0ba01c3 /graphics/pho/files
parent34543a1dc225c2e8bb5b43b93c27b823e5710bea (diff)
downloadFreeBSD-ports-7669f5f4a9d3aeec83e379f676e47677394ed0a8.zip
FreeBSD-ports-7669f5f4a9d3aeec83e379f676e47677394ed0a8.tar.gz
Teach pho to skip further options handling (previously, it was impossible to
view files which names start with `-'). Bump PORTREVISION.
Diffstat (limited to 'graphics/pho/files')
-rw-r--r--graphics/pho/files/patch-options34
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/pho/files/patch-options b/graphics/pho/files/patch-options
new file mode 100644
index 0000000..8c887d5
--- /dev/null
+++ b/graphics/pho/files/patch-options
@@ -0,0 +1,34 @@
+--- gmain.c.orig Mon Jul 25 12:18:05 2005
++++ gmain.c Mon Sep 11 16:05:05 2006
+@@ -643,9 +643,11 @@
+
+ int main(int argc, char** argv)
+ {
++ int options = 1;
++
+ while (argc > 1)
+ {
+- if (argv[1][0] == '-') {
++ if (argv[1][0] == '-' && options) {
+ if (argv[1][1] == 'd')
+ gDebug = 1;
+ else if (argv[1][1] == 'h')
+@@ -656,6 +658,8 @@
+ gMakeNewWindows = 1;
+ else if (argv[1][1] == 'p')
+ gPresentationMode = 1;
++ else if (argv[1][1] == '-')
++ options = 0;
+ else Usage();
+ }
+ else {
+--- pho.c.orig Mon Mar 21 07:28:03 2005
++++ pho.c Mon Sep 11 16:05:05 2006
+@@ -439,6 +439,7 @@
+ printf("\t-d: Debug messages\n");
+ printf("\t-h: Help: Print this summary\n");
+ printf("\t-v: Verbose help: Print a summary of key bindings\n");
++ printf("\t--: Assume no more options are given\n");
+ exit(1);
+ }
+
OpenPOWER on IntegriCloud