summaryrefslogtreecommitdiff
path: root/time/wmfishtime/patches/patch-ba
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2002-01-19 04:58:49 +0000
committermjl <mjl@pkgsrc.org>2002-01-19 04:58:49 +0000
commite5b7ddf5946d91baf9fa285bdb1ef9a6be8c3f52 (patch)
tree83438779c912b1a6505c931ddc74d2cf367dccd1 /time/wmfishtime/patches/patch-ba
parentef78be34a65ac5ee8e536b56d50e31a950dada7e (diff)
downloadpkgsrc-e5b7ddf5946d91baf9fa285bdb1ef9a6be8c3f52.tar.gz
Update to 1.23. No changelog available, though there probably
are many since the last version in pkgsrc was 1.1.
Diffstat (limited to 'time/wmfishtime/patches/patch-ba')
-rw-r--r--time/wmfishtime/patches/patch-ba59
1 files changed, 59 insertions, 0 deletions
diff --git a/time/wmfishtime/patches/patch-ba b/time/wmfishtime/patches/patch-ba
new file mode 100644
index 00000000000..ec5db7c43d0
--- /dev/null
+++ b/time/wmfishtime/patches/patch-ba
@@ -0,0 +1,59 @@
+--- fishmon.c.orig Sat Jan 19 05:37:10 2002
++++ fishmon.c Sat Jan 19 05:42:15 2002
+@@ -1017,6 +1017,8 @@
+ static void parse_options(int argc, char **argv)
+ {
+ static int ch = 0;
++
++#if 0
+ static struct option long_opts[] = {
+ { "h", no_argument, NULL, 1 },
+ { "help", no_argument, NULL, 1 },
+@@ -1041,15 +1043,43 @@
+ break;
+ }
+ }
++#else
++ extern char *optarg;
++ extern int optind;
++ extern int optopt;
++ extern int opterr;
++ extern int optreset;
++
++ while((ch = getopt(argc, argv, "bchv")) != -1)
++ {
++ switch(ch)
++ {
++ case 'b':
++ broken_wm = 1;
++ break;
++ case 'c':
++ enable_check_mail = 1;
++ break;
++ case 'v':
++ do_version();
++ exit(0);
++ case 'h':
++ default:
++ do_help();
++ exit(1);
++ }
++ }
++
++#endif
+ }
+
+ static void do_help(void)
+ {
+ printf("Usage: wmfishtime [options]\n\n"
+- " -h\t--help\t\tshow this message and exit\n"
+- " -v\t--version\tshow version and exit\n"
+- " -c\t--check-mail\tenables check for new mail\n"
+- " -b\t--broken\tactivates broken window manager fix\n\n"
++ " -h\tshow this message and exit\n"
++ " -v\tshow version and exit\n"
++ " -c\tenables check for new mail\n"
++ " -b\tactivates broken window manager fix\n\n"
+ "Yet Another Waste of CPU Cycles! Dock app clock with\n"
+ "shy fish, bubbles and mail check functionality (disabled by default).\n"
+ "Try out the man page wmfishtime (1x).\n");