home *** CD-ROM | disk | FTP | other *** search
- Path: uunet!dtix!darwin.sura.net!mips!msi!dcmartin
- From: S.Marshall@sequent.cc.hull.ac.uk (Simon Marshall)
- Newsgroups: comp.sources.x
- Subject: v18i097: xalarm-3.04, Patch1, Part01/01
- Message-ID: <1992Aug27.154522.24791@msi.com>
- Date: 27 Aug 92 15:45:22 GMT
- References: <csx-18i097-xalarm-3.04@uunet.UU.NET>
- Sender: dcmartin@msi.com (David C. Martin - Moderator)
- Organization: Molecular Simulations, Inc.
- Lines: 881
- Approved: dcmartin@msi.com
- Originator: dcmartin@fascet
-
- Submitted-by: Simon Marshall <S.Marshall@sequent.cc.hull.ac.uk>
- Posting-number: Volume 18, Issue 97
- Archive-name: xalarm-3.04/patch1
- Patch-To: xalarm-3.04: Volume 18, Issue 7
-
- This is the patch file to make xalarm-3.05 from xalarm-3.04
-
- You can see which version you already have by looking at patchlevel.h in the
- xalarm source directory, or, if you have xalarm, by:
-
- % xalarm -version
- ------------------------------------------------------------------------------
- Changes from xalarm-3.04:
-
- BUGFIXES
- o Confirmation resource not ignored when resetting.
- o Imakefile does not follow macro `,'s with a space.
-
- CHANGES
- o xmemo expects a message.
-
- ADDITIONS
- o Automatically gets colours with X11R5 customisation method.
-
- OTHERS
- o Can use other ways to find commands when configing.
- o Easier to put colours in.
- o Ported to more machines.
- ------------------------------------------------------------------------------
- To apply the patch, go into the xalarm source directory. If you have a dumb
- patcher, you may first need to do:
-
- % touch XAlarm-color.ad
-
- To apply the patch:
-
- % patch < thisfile
-
- Then follow the "MAKING" section in the INSTALL file for making xalarm-3.05.
- ------------------------------------------------------------------------------
- Enjoy.
-
- Simon Marshall, Dept. Computer Science, University of Hull, HU6 7RX, UK
- ---------------------------- S.Marshall@Hull.ac.UK ---------------------------
-
- Prereq: "3.04"
- diff -cr xalarm-3.04/patchlevel.h xalarm/patchlevel.h
- *** xalarm-3.04/patchlevel.h Mon Jun 15 13:37:06 1992
- --- xalarm/patchlevel.h Mon Jun 15 13:37:47 1992
- ***************
- *** 1 ****
- ! #define XALARMVERSION "3.04"
- --- 1 ----
- ! #define XALARMVERSION "3.05"
- diff -cr xalarm-3.04/ChangeLog xalarm/ChangeLog
- *** xalarm-3.04/ChangeLog Mon Jun 15 13:37:05 1992
- --- xalarm/ChangeLog Tue Aug 11 13:00:33 1992
- ***************
- *** 1,3 ****
- --- 1,36 ----
- + Tue Aug 11 12:59:51 1992 Simon Marshall (sm at olympus)
- +
- + * Released xalarm-3.05.
- +
- + Fri Jul 31 14:04:03 1992 Simon Marshall (sm at olympus)
- +
- + * xalarm ignored the confirmation resource when the alarm is reset.
- + From a bug report of sorts by Kirk Morgan.
- +
- + Wed Jul 22 20:51:43 1992 Simon Marshall (sm at dahlia)
- +
- + * More colours, easier to set. Due to pester from Diab Jerius.
- +
- + Sat Jul 18 14:02:58 1992 Simon Marshall (sm at olympus)
- +
- + * More chance of config.1st working for SYSV machines. With the help
- + of Kirk Morgan.
- +
- + Tue Jul 14 11:12:12 1992 Simon Marshall (sm at olympus)
- +
- + * Added resource file for X11R5 colour customisation.
- +
- + * xmemo expects a message.
- +
- + Fri Jul 10 14:31:28 1992 Simon Marshall (sm at olympus)
- +
- + * Can use find (plus GNU find's locate) to get the location of
- + commands, once again.
- +
- + Thu Jun 25 14:28:25 1992 Simon Marshall (sm at olympus)
- +
- + * Removed spaces after `,'s in Imakefile. Post by Andreas Stolcke.
- +
- Mon Jun 15 12:57:31 1992 Simon Marshall (sm at olympus)
-
- * Released xalarm-3.04.
- diff -cr xalarm-3.04/INSTALL xalarm/INSTALL
- *** xalarm-3.04/INSTALL Mon Jun 15 13:37:05 1992
- --- xalarm/INSTALL Fri Jul 17 13:10:03 1992
- ***************
- *** 12,21 ****
-
- If you have problems with compilation or use, look at the PROBLEMS file.
-
- ! 1. If you don't want to use the Imakefile or the Makefile generated from
- ! it, try using Makefile.alt.
-
- ! Check the flag settings in the Makefile of your choice. If you are
- using the Imakefile, generate a Makefile by "xmkmf".
-
- If you want to use a different notation or language for dates etc., see
- --- 12,22 ----
-
- If you have problems with compilation or use, look at the PROBLEMS file.
-
- ! 1. If you don't want to use the Imakefile, try using Makefile.alt. Do not
- ! use the Makefile supplied, unless you are in the Department of Computer
- ! Science, University of Hull, UK, and using a Sun called olympus...
-
- ! Check the flag settings in the makefile of your choice. If you are
- using the Imakefile, generate a Makefile by "xmkmf".
-
- If you want to use a different notation or language for dates etc., see
- ***************
- *** 23,30 ****
-
- 2. Try making with "make". Answer the questions. Have a play.
-
- ! 3. If you aren't installing (you selfish get), put the XAlarm.ad and
- ! XAlarm.ad+ in your ~/.xresources file.
-
- Otherwise, try "make install install.man".
-
- --- 24,31 ----
-
- 2. Try making with "make". Answer the questions. Have a play.
-
- ! 3. If you aren't installing (you selfish get), put the contents of
- ! XAlarm.ad and XAlarm.ad+ in your ~/.Xdefaults file.
-
- Otherwise, try "make install install.man".
-
- diff -cr xalarm-3.04/Imakefile xalarm/Imakefile
- *** xalarm-3.04/Imakefile Mon Jun 15 13:37:05 1992
- --- xalarm/Imakefile Thu Jul 16 12:11:17 1992
- ***************
- *** 29,34 ****
- --- 29,36 ----
- OBJS = alarm.o when.o warnings.o times.o dates.o file.o fns.o xalarm.o
- SRCS = alarm.c when.c warnings.c times.c dates.c file.c fns.c xalarm.c
-
- + # How we find commands. Use WHICH, LOCATE or FIND.
- + WHICH= WHICH
- MADE = test -f
-
- LOCAL_LIBRARIES = XawClientLibs
- ***************
- *** 37,51 ****
- ComplexProgramTarget (xalarm)
-
- InstallAppDefaults (XAlarm)
- ! InstallMultipleFlags (xmemo xfortune xyow, $(BINDIR), $(INSTBINFLAGS))
- ! InstallManPage (xmemo, $(MANDIR))
- ! InstallManPage (xfortune, $(MANDIR))
- ! InstallManPage (xyow, $(MANDIR))
-
- includes:: fns.h
-
- fns.h:
- ! @./config.1st -quick fortune yow
-
- xmemo.man xyow.man xfortune.man:
- echo ".so man"`echo ManSuffix`"/xalarm."`echo ManSuffix` > $@
- --- 39,54 ----
- ComplexProgramTarget (xalarm)
-
- InstallAppDefaults (XAlarm)
- ! InstallAppDefaults (XAlarm-color)
- ! InstallMultipleFlags (xmemo xfortune xyow,$(BINDIR),$(INSTBINFLAGS))
- ! InstallManPage (xmemo,$(MANDIR))
- ! InstallManPage (xfortune,$(MANDIR))
- ! InstallManPage (xyow,$(MANDIR))
-
- includes:: fns.h
-
- fns.h:
- ! @./config.1st -quick $(WHICH) fortune yow
-
- xmemo.man xyow.man xfortune.man:
- echo ".so man"`echo ManSuffix`"/xalarm."`echo ManSuffix` > $@
- ***************
- *** 58,64 ****
- $(RM) xfortune xyow xmemo.man xyow.man xfortune.man fns.h .config
-
- config::
- ! @./config.1st -quick fortune yow
- @xrdb -merge XAlarm.ad
- @xrdb -merge XAlarm.ad+
-
- --- 61,67 ----
- $(RM) xfortune xyow xmemo.man xyow.man xfortune.man fns.h .config
-
- config::
- ! @./config.1st -quick $(WHICH) fortune yow
- @xrdb -merge XAlarm.ad
- @xrdb -merge XAlarm.ad+
-
- diff -cr xalarm-3.04/Makefile.alt xalarm/Makefile.alt
- *** xalarm-3.04/Makefile.alt Mon Jun 15 13:37:05 1992
- --- xalarm/Makefile.alt Thu Jul 16 12:11:16 1992
- ***************
- *** 36,41 ****
- --- 36,43 ----
-
-
- # Bits and bobs.
- + # How we find commands. Use WHICH, LOCATE or FIND.
- + WHICH = WHICH
- MADE = test -f
- STRIP = /bin/strip
- CP = /bin/cp
- ***************
- *** 73,78 ****
- --- 75,81 ----
- $(MADE) xfortune && $(CP) xfortune $(X11BIN)
- $(MADE) xyow && $(CP) xyow $(X11BIN)
- $(CP) XAlarm.ad $(X11AD)/XAlarm
- + $(CP) XAlarm-color.ad $(X11AD)/XAlarm-color
-
- install.man:
- $(CP) xalarm.man $(X11MAN)/xalarm.$(MANSUFX)
- ***************
- *** 86,92 ****
-
-
- fns.h:
- ! @./config.1st -quick fortune yow
-
- tags:
- $(TAGS) $(SRCS)
- --- 89,95 ----
-
-
- fns.h:
- ! @./config.1st -quick $(WHICH) fortune yow
-
- tags:
- $(TAGS) $(SRCS)
- ***************
- *** 99,105 ****
-
- # Make sure the resources are loaded so xalarm can be used before installed etc.
- config:
- ! @./config.1st -quick fortune yow
- @xrdb -merge XAlarm.ad
- @xrdb -merge XAlarm.ad+
-
- --- 102,108 ----
-
- # Make sure the resources are loaded so xalarm can be used before installed etc.
- config:
- ! @./config.1st -quick $(WHICH) fortune yow
- @xrdb -merge XAlarm.ad
- @xrdb -merge XAlarm.ad+
-
- diff -cr xalarm-3.04/PROBLEMS xalarm/PROBLEMS
- *** xalarm-3.04/PROBLEMS Mon Jun 15 13:37:05 1992
- --- xalarm/PROBLEMS Tue Aug 11 12:51:28 1992
- ***************
- *** 66,72 ****
- Imakefile or Makefile.alt on how to control how it is defined, using
- compiler symbol defines.
-
- ! 11. If you don't have "fortune" or "yow", you can't have "xfortune" or
- "xyow".
-
- What about other programs, along with xyow and xfortune, can I make
- --- 66,82 ----
- Imakefile or Makefile.alt on how to control how it is defined, using
- compiler symbol defines.
-
- ! 11. Make, config.1st or fullpath complain about "which" not being found.
- ! You can either answer the questions anyway, or change the definition of
- ! WHICH in the Imakefile or Makefile.alt to LOCATE or FIND. Using FIND
- ! to find the location of commands is slow.
- !
- ! 12. Other problems may be the result of you not building from a Bourne
- ! Shell (sh). You might not even be able to run "xmkmf" without first
- ! invoking sh. You may also need to run make with the `-C' option. Your
- ! system is rubbish.
- !
- ! 13. If you don't have "fortune" or "yow", you can't have "xfortune" or
- "xyow".
-
- What about other programs, along with xyow and xfortune, can I make
- ***************
- *** 73,80 ****
- these too? To make the executable shell script "xyourprogram" in the
- current directory, do:
-
- ! % config.1st [-quick] yourprogram
-
- You will be asked about "ps" etc. again, but persevere. You will have
- to install both the executable and manual page yourself. The manual
- page would be an exact copy of xmemo.man. If xmemo.man is not made:
- --- 83,92 ----
- these too? To make the executable shell script "xyourprogram" in the
- current directory, do:
-
- ! % config.1st [-quick] WHICH yourprogram
-
- + (See 11 under COMPILATION if you get complaints about "which".)
- +
- You will be asked about "ps" etc. again, but persevere. You will have
- to install both the executable and manual page yourself. The manual
- page would be an exact copy of xmemo.man. If xmemo.man is not made:
- ***************
- *** 88,95 ****
- 1. The alarm comes up with buttons overlayed etc., it's a mess. The
- resources aren't around and xalarm is almost completely controlled by
- them. Either install the resources (so others can also use xalarm), or
- ! include them in your ~/.xresources file. When xalarm is first made,
- ! the resources are merged automatically so that you need not do this, at
- least for that current session.
-
- 2. Xalarm does not use your user name as the alarm popup name, and
- --- 100,107 ----
- 1. The alarm comes up with buttons overlayed etc., it's a mess. The
- resources aren't around and xalarm is almost completely controlled by
- them. Either install the resources (so others can also use xalarm), or
- ! include them in your ~/.Xdefaults file. When xalarm is first made, the
- ! resources are merged automatically so that you need not do this, at
- least for that current session.
-
- 2. Xalarm does not use your user name as the alarm popup name, and
- diff -cr xalarm-3.04/README xalarm/README
- *** xalarm-3.04/README Mon Jun 15 13:37:06 1992
- --- xalarm/README Sat Jul 18 14:16:17 1992
- ***************
- *** 82,88 ****
- create xfortune and xyow (front ends to xmemo). Note that they require the
- fortune and yow programs respectively, they don't come with this.
-
- ! See the file INSTALL and PROBLEMS for help with installation and problems.
-
-
- THE END
- --- 82,96 ----
- create xfortune and xyow (front ends to xmemo). Note that they require the
- fortune and yow programs respectively, they don't come with this.
-
- ! xalarm can use X11R5's app-defaults file colour extension. To get the
- ! benefit, put:
- !
- ! *customization: -color
- !
- ! in your ~/.Xdefaults file.
- !
- ! See the file INSTALL for instructions on how to build xalarm, and PROBLEMS
- ! for help with installation and running.
-
-
- THE END
- diff -cr xalarm-3.04/XAlarm-color.ad xalarm/XAlarm-color.ad
- *** xalarm-3.04/XAlarm-color.ad Tue Jul 14 11:28:44 1992
- --- xalarm/XAlarm-color.ad Wed Jul 22 20:39:52 1992
- ***************
- *** 0 ****
- --- 1,9 ----
- + #include "XAlarm"
- +
- + XAlarm*background: LightYellow
- + XAlarm*foreground: IndianRed
- + XAlarm*Command.background: IndianRed
- + XAlarm*Command.foreground: LightYellow
- + XAlarm.When?.when.Dialog.background: MidnightBlue
- + XAlarm.Warning!.warning.background: HotPink
- + XAlarm.Alarm!.alarm.background: DarkGreen
- diff -cr xalarm-3.04/XAlarm.ad xalarm/XAlarm.ad
- *** xalarm-3.04/XAlarm.ad Mon Jun 15 13:37:06 1992
- --- xalarm/XAlarm.ad Wed Jul 22 20:46:30 1992
- ***************
- *** 1,13 ****
- ! ! We can't surround this by "#ifdef COLOR ... #endif" and have it in
- ! ! .../lib/X11/app-defaults/XAlarm because stuff in there is not pre-processed
- ! ! with cpp like wot xrdb does. Now why is that...?
- ! ! If you want colour, you have to stick this in your ~/.xresources file (where
- ! ! you can surround it with #ifdefs).
- ! #ifdef COLOR
- ! XAlarm*background: LightYellow
- ! XAlarm*foreground: IndianRed
- ! XAlarm*Command.background: IndianRed
- ! XAlarm*Command.foreground: LightYellow
- ! #endif
-
- XAlarm.confirm: True
- --- 1,17 ----
- ! ! If you have X11R5, put this in your ~/.Xdefaults file:
- ! !
- ! ! *customization: -color
- ! !
- ! ! Otherwise put this in your ~/.Xdefaults file:
- ! !
- ! #ifdef COLOR
- ! XAlarm*background: LightYellow
- ! XAlarm*foreground: IndianRed
- ! XAlarm*Command.background: IndianRed
- ! XAlarm*Command.foreground: LightYellow
- + ! XAlarm.When?.when.Dialog.background: MidnightBlue
- + ! XAlarm.Warning!.warning.background: HotPink
- + ! XAlarm.Alarm!.alarm.background: DarkGreen
- ! #endif
-
- XAlarm.confirm: True
- ***************
- *** 19,24 ****
- --- 23,32 ----
- XAlarm.alarmaudio: bell
- XAlarm.warningaudio: bell
-
- + XAlarm.When?.when.Dialog.background: Black
- + XAlarm.Alarm!.alarm.background: Black
- + XAlarm.Warning!.warning.background: Black
- +
- XAlarm*background: White
- XAlarm*foreground: Black
- XAlarm*font: -*-times-bold-r-*-*-14-*-*-*-p-*-iso8859-1
- ***************
- *** 41,47 ****
- XAlarm*quit.label: Quit
- XAlarm*reset.label: Reset
-
- - XAlarm.Alarm!.alarm.background: Black
- XAlarm.Alarm!.alarm.message.cursor: gumby
- XAlarm.Alarm!.alarm.message.label: Alarm Call!!!
- XAlarm.Alarm!.alarm.message.font: -*-times-bold-i-*-*-34-*-*-*-p-*-iso8859-1
- --- 49,54 ----
- ***************
- *** 63,81 ****
- XAlarm.When?.when.background: Black
- XAlarm.When?.when.defaultDistance: 0
-
- - XAlarm.When?.when.time.background: Black
- XAlarm.When?.when.time.ok.label: Enter time
- XAlarm.When?.when.time.value.translations: #override <Key>Return: EnteredTime()
-
- - XAlarm.When?.when.date.background: Black
- XAlarm.When?.when.date.ok.label: Enter date
- XAlarm.When?.when.date.value.translations: #override <Key>Return: EnteredDate()
-
- - XAlarm.When?.when.warnings.background: Black
- XAlarm.When?.when.warnings.ok.label: Enter warnings
- XAlarm.When?.when.warnings.value.translations: #override <Key>Return: EnteredWarnings()
-
- - XAlarm.When?.when.confirm.background: Black
- XAlarm.When?.when.confirm.value*font: -*-times-bold-i-*-*-14-*-*-*-p-*-iso8859-1
- XAlarm.When?.when.confirm.ok.label: Confirm time
- XAlarm.When?.when.confirm.cancel.label: Re-edit
- --- 70,84 ----
- ***************
- *** 92,98 ****
- XAlarm.When?*Command.top: ChainBottom
- XAlarm.When?*Command.bottom: ChainBottom
-
- - XAlarm.Warning!.warning.background: Black
- XAlarm.Warning!.warning.dismiss.label: Dismiss
- XAlarm.Warning!.warning.message.fromHoriz: dismiss
- XAlarm.Warning!.warning.message.cursor: clock
- --- 95,100 ----
- diff -cr xalarm-3.04/XAlarm.ad+ xalarm/XAlarm.ad+
- *** xalarm-3.04/XAlarm.ad+ Mon Jun 15 13:37:06 1992
- --- xalarm/XAlarm.ad+ Wed Jul 22 21:00:31 1992
- ***************
- *** 1,19 ****
- ! ! We can't surround this by "#ifdef COLOR ... #endif" and have it in
- ! ! .../lib/X11/app-defaults/XAlarm because stuff in there is not pre-processed
- ! ! with cpp like wot xrdb does. Now why is that...?
-
- ! ! If you want colour, you have to stick this in your ~/.xresources file (where
- ! ! you can surround it with #ifdefs).
-
- ! #ifdef COLOR
- ! XAlarm*background: LightYellow
- ! XAlarm*foreground: IndianRed
- ! XAlarm*Command.background: IndianRed
- ! XAlarm*Command.foreground: LightYellow
- ! #endif
-
- ! If you want a smaller button box in the alarm window, uncomment & try these
- ! ! for size in your ~/.xresources file:
-
- !XAlarm.Alarm!.alarm.buttons.snooze1.fromVert: quit
- ! This will vary depending on the button labels & font...
- --- 1,21 ----
- ! ! If you have X11R5, put this in your ~/.Xdefaults file:
-
- ! *customization: -color
-
- ! ! Otherwise put this in your ~/.Xdefaults file:
- ! !
- ! ! #ifdef COLOR
- ! ! XAlarm*background: LightYellow
- ! ! XAlarm*foreground: IndianRed
- ! ! XAlarm*Command.background: IndianRed
- ! ! XAlarm*Command.foreground: LightYellow
- ! ! XAlarm.When?.when.Dialog.background: MidnightBlue
- ! ! XAlarm.Warning!.warning.background: HotPink
- ! ! XAlarm.Alarm!.alarm.background: DarkGreen
- ! ! #endif
-
- ! If you want a smaller button box in the alarm window, uncomment & try these
- ! ! for size in your ~/.Xdefaults file:
-
- !XAlarm.Alarm!.alarm.buttons.snooze1.fromVert: quit
- ! This will vary depending on the button labels & font...
- diff -cr xalarm-3.04/alarm.c xalarm/alarm.c
- *** xalarm-3.04/alarm.c Mon Jun 15 13:37:06 1992
- --- xalarm/alarm.c Thu Jul 30 22:11:05 1992
- ***************
- *** 29,35 ****
-
-
- #define NAMEFORMAT "%s: %s@%s"
- ! #define REALNAMEFORMAT " (%s)"
- #define TIMEFORMAT " (%d:%02d)"
-
-
- --- 29,35 ----
-
-
- #define NAMEFORMAT "%s: %s@%s"
- ! #define REALNAMEFORMAT " <%s>"
- #define TIMEFORMAT " (%d:%02d)"
-
-
- ***************
- *** 261,267 ****
- }
-
- xalarm.dateout = DateToMilliSeconds (xalarm.datestr);
- ! xalarm.timeout = TimeToMilliSeconds (xalarm.timestr);
-
- PopupAndAsk ();
- }
- --- 261,267 ----
- }
-
- xalarm.dateout = DateToMilliSeconds (xalarm.datestr);
- ! xalarm.timeout = INVALID;
-
- PopupAndAsk ();
- }
- diff -cr xalarm-3.04/config.1st xalarm/config.1st
- *** xalarm-3.04/config.1st Mon Jun 15 13:37:06 1992
- --- xalarm/config.1st Sat Jul 18 12:00:44 1992
- ***************
- *** 35,45 ****
- mode=
- fi
-
- ! kill=`./fullpath $mode kill`
- ! ps=`./fullpath $mode ps`
- ! grep=`./fullpath $mode grep`
- ! colrm=`./fullpath $mode colrm`
-
- echo '/*
- * Get xalarm pids:
- * list user processes | filter for xalarm | pid #s only | filter us out
- --- 35,65 ----
- mode=
- fi
-
- ! which=$1
- ! shift
-
- + kill=`./fullpath $mode $which kill`
- + ps=`./fullpath $mode $which ps`
- + grep=`./fullpath $mode $which grep`
- + colrm=`./fullpath $mode $which colrm`
- +
- + # Try to guess the flags...
- + if ($grep -w guess $0 > /dev/null 2>&1); then
- + grep="$grep -w"
- + fi
- + if ($ps -cx > /dev/null 2>&1); then
- + ps="$ps -cx"
- + else
- + ps="$ps -u"'$USER'
- + fi
- + if test -f "$colrm"; then
- + colrm="$colrm 7"
- + else
- + echo "Alternatively:"
- + sed=`./fullpath $mode $which sed`
- + colrm="$sed 's/[^ 0-9].*$//'"
- + fi
- +
- echo '/*
- * Get xalarm pids:
- * list user processes | filter for xalarm | pid #s only | filter us out
- ***************
- *** 47,58 ****
- * Where "us" is where the xalarm pid# running this will go.
- *
- * Normally we use ps(1), grep(1), colrm(1) and grep(1) again, respectively.
- ! * Typically:
- * "/bin/ps -cx | /bin/grep -w xalarm | /usr/ucb/colrm 7 | /bin/grep -v %d"
- */
-
- #define GETXALARMPIDS \
- ! "'$ps' -cx | '$grep' -w xalarm | '$colrm' 7 | '$grep' -v %d"
-
- /*
- * Full path of kill(1), typically "/bin/kill".
- --- 67,78 ----
- * Where "us" is where the xalarm pid# running this will go.
- *
- * Normally we use ps(1), grep(1), colrm(1) and grep(1) again, respectively.
- ! * Typically for BSD:
- * "/bin/ps -cx | /bin/grep -w xalarm | /usr/ucb/colrm 7 | /bin/grep -v %d"
- */
-
- #define GETXALARMPIDS \
- ! "'$ps' | '$grep' xalarm | '$colrm' | '$grep' -v %d"
-
- /*
- * Full path of kill(1), typically "/bin/kill".
- ***************
- *** 65,71 ****
- echo " "
-
- for program in $*; do
- ! progpath=`./fullpath $mode $program`
- if test -f "$progpath"; then
- echo '#!/bin/sh
- exec xmemo -name x'$program' ${1+"$@"} "`'$progpath'`"' > x$program
- --- 85,91 ----
- echo " "
-
- for program in $*; do
- ! progpath=`./fullpath $mode $which $program`
- if test -f "$progpath"; then
- echo '#!/bin/sh
- exec xmemo -name x'$program' ${1+"$@"} "`'$progpath'`"' > x$program
- ***************
- *** 86,90 ****
- echo "
- Thank you.
- ";;
- ! *) ./config.1st $*;;
- esac
- --- 106,110 ----
- echo "
- Thank you.
- ";;
- ! *) ./config.1st $which $*;;
- esac
- diff -cr xalarm-3.04/fullpath xalarm/fullpath
- *** xalarm-3.04/fullpath Mon Jun 15 13:37:06 1992
- --- xalarm/fullpath Thu Jul 16 19:46:44 1992
- ***************
- *** 3,15 ****
- PATH="$PATH:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin:/usr/games:/usr/local/lib/emacs/etc:/usr/local/emacs/etc."
- export PATH
-
- ! case $1 in
- -quick) mode=-quick
- shift;;
- *) mode=;;
- esac
- !
- ! loc=`which $1 2>/dev/null`
- case "$loc" in
- # For a Tek:
- "command is /"*)
- --- 3,29 ----
- PATH="$PATH:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin:/usr/games:/usr/local/lib/emacs/etc:/usr/local/emacs/etc."
- export PATH
-
- ! case "$1" in
- -quick) mode=-quick
- shift;;
- *) mode=;;
- esac
- ! which=$1
- ! shift
- ! case "$which" in
- ! WHICH) loc=`which $1 2>/dev/null`;;
- ! LOCATE) loc=`locate "*/$1" 2>/dev/null`;;
- ! FIND) path=`echo $PATH | sed 's/:/ /g'`
- ! for i in $path; do
- ! loc=`find $i/ -name $1 -type f -print 2>/dev/null \
- ! | head -1`
- ! if test "$loc"; then
- ! break
- ! fi
- ! done;;
- ! *) echo "fullpath: Cannot find command location with \"$which\"."
- ! exit;;
- ! esac
- case "$loc" in
- # For a Tek:
- "command is /"*)
- diff -cr xalarm-3.04/when.c xalarm/when.c
- *** xalarm-3.04/when.c Mon Jun 15 13:37:06 1992
- --- xalarm/when.c Thu Jul 30 22:11:04 1992
- ***************
- *** 197,204 ****
- else if (ISINVALID (xalarm.numwarnings) or
- EDITED (xalarm.warningsstr, xalarm.getwtimewidget))
- Popup (xalarm.getwtimewidget, WARNINGINSTRUCTIONS);
- ! else
- PopupAndConfirm ();
- }
-
-
- --- 197,206 ----
- else if (ISINVALID (xalarm.numwarnings) or
- EDITED (xalarm.warningsstr, xalarm.getwtimewidget))
- Popup (xalarm.getwtimewidget, WARNINGINSTRUCTIONS);
- ! else if (xalarm.confirm)
- PopupAndConfirm ();
- + else
- + Confirmed ((Widget) NULL, (XtPointer) NULL, (XtPointer) NULL);
- }
-
-
- diff -cr xalarm-3.04/xalarm.c xalarm/xalarm.c
- *** xalarm-3.04/xalarm.c Mon Jun 15 13:37:07 1992
- --- xalarm/xalarm.c Tue Jun 30 10:59:05 1992
- ***************
- *** 196,204 ****
- {
- ApplData data;
-
- ! xalarm.toplevel = XtAppInitialize (&xalarm.appcon, "XAlarm",
- ! options, XtNumber (options), &argc, argv,
- ! (String *) NULL, (ArgList) NULL, 0);
-
- XtGetApplicationResources (xalarm.toplevel, &data, resources, XtNumber (resources),
- (ArgList) NULL, 0);
- --- 196,204 ----
- {
- ApplData data;
-
- ! xalarm.toplevel = XtVaAppInitialize (&xalarm.appcon, "XAlarm",
- ! options, XtNumber (options), &argc, argv,
- ! (String *) NULL, NULL);
-
- XtGetApplicationResources (xalarm.toplevel, &data, resources, XtNumber (resources),
- (ArgList) NULL, 0);
- diff -cr xalarm-3.04/xalarm.h xalarm/xalarm.h
- *** xalarm-3.04/xalarm.h Mon Jun 15 13:37:07 1992
- --- xalarm/xalarm.h Fri Jul 10 18:20:38 1992
- ***************
- *** 209,216 ****
- --- 209,220 ----
- #define SUMTIMEOUTS(a, b) \
- (unsigned long) (((b) < 0) ? (a) - (unsigned long) (-b) : (a) + (unsigned long) (b))
-
- + #if not defined (MAX)
- #define MAX(x, y) ((x) > (y) ? (x) : (y))
- + #endif
- + #if not defined (MIN)
- #define MIN(x, y) ((x) < (y) ? (x) : (y))
- + #endif
-
- #define STREQUAL(a, b) (strncmp ((a), (b), strlen (b)) == 0)
- #define ERRORIS(error) (STREQUAL (xalarm.errormessage, error))
- diff -cr xalarm-3.04/xalarm.man xalarm/xalarm.man
- *** xalarm-3.04/xalarm.man Mon Jun 15 13:37:07 1992
- --- xalarm/xalarm.man Wed Jul 22 21:03:58 1992
- ***************
- *** 16,22 ****
- [-\fItoolkitoption\fP ...] [-option ...] [message_text]
- .LP
- .B xmemo
- ! [-\fItoolkitoption\fP ...] [-option ...] [message_text]
- .LP
- .B xfortune
- [-\fItoolkitoption\fP ...] [-option ...]
- --- 16,22 ----
- [-\fItoolkitoption\fP ...] [-option ...] [message_text]
- .LP
- .B xmemo
- ! [-\fItoolkitoption\fP ...] [-option ...] message_text
- .LP
- .B xfortune
- [-\fItoolkitoption\fP ...] [-option ...]
- ***************
- *** 812,823 ****
- .I xalarm:
- .PP
- .nf
- ! ! For some nice colours...
- XAlarm*background: LightYellow
- XAlarm*foreground: IndianRed
- XAlarm*Command.background: IndianRed
- XAlarm*Command.foreground: LightYellow
- ! ! But this is what you normally get...
- XAlarm*background: White
- XAlarm*foreground: Black
- XAlarm*Command.background: Black
- --- 812,828 ----
- .I xalarm:
- .PP
- .nf
- ! ! For some nice colours... If you have X11R5:
- ! *customization: -color
- ! ! Otherwise:
- XAlarm*background: LightYellow
- XAlarm*foreground: IndianRed
- XAlarm*Command.background: IndianRed
- XAlarm*Command.foreground: LightYellow
- ! XAlarm.When?.when.Dialog.background: MidnightBlue
- ! XAlarm.Warning!.warning.background: HotPink
- ! XAlarm.Alarm!.alarm.background: DarkGreen
- ! ! This is what you normally get...
- XAlarm*background: White
- XAlarm*foreground: Black
- XAlarm*Command.background: Black
- ***************
- *** 896,901 ****
- --- 901,913 ----
- .I xalarm
- to look for alarms to set.
- .TP 8
- + .B USER
- + The user's login name. This may be used by
- + .I xalarm
- + when looking for the user's name for the alarm title, or the user's
- + .I xalarm
- + processes.
- + .TP 8
- .B HOME
- The user's home directory. This may be used by
- .I xalarm
- ***************
- *** 1097,1105 ****
- Stefan Haenssgen, Informatik Rechnerabteilung, University of Karlsruhe, for
- their help with ideas, comments and code, in the making of
- .I xalarm
- ! version 3.03. Thanks also to Paul Moore for his help in porting
- .I xalarm
- ! for version 3.04.
-
- For getting version 3 from version 2 in the first place, thanks have to go to
- Bill Leonard, Harris Computer Systems Division, Florida, for harassing me with
- --- 1109,1118 ----
- Stefan Haenssgen, Informatik Rechnerabteilung, University of Karlsruhe, for
- their help with ideas, comments and code, in the making of
- .I xalarm
- ! version 3.03. Thanks also to Paul Moore and Kirk Morgan for their help in
- ! porting
- .I xalarm
- ! for versions 3.04 and 3.05.
-
- For getting version 3 from version 2 in the first place, thanks have to go to
- Bill Leonard, Harris Computer Systems Division, Florida, for harassing me with
- diff -cr xalarm-3.04/xmemo xalarm/xmemo
- *** xalarm-3.04/xmemo Mon Jun 15 13:37:07 1992
- --- xalarm/xmemo Tue Jul 14 15:26:18 1992
- ***************
- *** 1,3 ****
- #!/bin/sh
- ! exec xalarm -time now -date today -noconfirm -nowarn -nopester \
- ! -name xmemo ${1+"$@"}
- --- 1,7 ----
- #!/bin/sh
- ! if test $# -eq 0; then
- ! echo "What's the message?"
- ! else
- ! exec xalarm -time now -date today -noconfirm -nowarn -nopester \
- ! -name xmemo ${1+"$@"}
- ! fi
-
- --
- Senior Systems Scientist mail: dcmartin@msi.com
- Molecular Simulations, Inc. uucp: uunet!dcmartin
- 796 North Pastoria Avenue at&t: 408/522-9236
- Sunnyvale, California 94086 fax: 408/732-0831
-