home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2180 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  2.9 KB

  1. From: dfs@doe.carleton.ca (David F. Skoll)
  2. Newsgroups: alt.sources
  3. Subject: REMIND 2.2 Patch 04
  4. Message-ID: <dfs.659888336@scotty>
  5. Date: 29 Nov 90 14:18:56 GMT
  6.  
  7. This patch fixes a problem that should have been caught, had I been
  8. using an ANSI-C compiler.  In calendar.c, the function CreateCalEntry
  9. is called with the wrong number of arguments.  This patch also tidies
  10. up the man page a bit more.
  11.  
  12. --
  13. David Skoll
  14.  
  15. #!/bin/sh
  16. # This is Remind-2.2-Patch.04, a shell archive (shar 3.32)
  17. # made 11/29/1990 14:14 UTC by dfs@scotty
  18. # Source directory /enterprise/transporter/dfs/work/.rem/remind-2.2
  19. #
  20. # existing files will NOT be overwritten
  21. #
  22. # This shar contains:
  23. # length  mode       name
  24. # ------ ---------- ------------------------------------------
  25. #   1639 -rw------- patch.04
  26. #
  27. if touch 2>&1 | fgrep 'amc' > /dev/null
  28.  then TOUCH=touch
  29.  else TOUCH=true
  30. fi
  31. # ============= patch.04 ==============
  32. if test X"$1" != X"-c" -a -f 'patch.04'; then
  33.     echo "File already exists: skipping 'patch.04'"
  34. else
  35. echo "x - extracting patch.04 (Text)"
  36. sed 's/^X//' << 'SHAR_EOF' > patch.04 &&
  37. X*** ../work-backup/calendar.c    Thu Nov 29 09:10:53 1990
  38. X--- ./calendar.c    Thu Nov 29 09:11:53 1990
  39. X***************
  40. X*** 230,236 ****
  41. X        used[DayOfWeek(JulianToday)] = CurDay;
  42. X        if (GetLine()) break;
  43. X        i = ProcessLine();
  44. X!       if (i>0) if (e = CreateCalEntry()) AddCalEntry(e);
  45. X     }
  46. X  
  47. X     /* Now figure out if we should print the calendar */
  48. X--- 230,236 ----
  49. X        used[DayOfWeek(JulianToday)] = CurDay;
  50. X        if (GetLine()) break;
  51. X        i = ProcessLine();
  52. X!       if (i>0) if (e = CreateCalEntry(i)) AddCalEntry(e);
  53. X     }
  54. X  
  55. X     /* Now figure out if we should print the calendar */
  56. X*** ../work-backup/init.c    Thu Nov 29 09:10:55 1990
  57. X--- ./init.c    Thu Nov 29 09:12:03 1990
  58. X***************
  59. X*** 7,13 ****
  60. X  #include "globals.h"
  61. X  #include "protos.h"
  62. X  
  63. X! #define PATCHLEVEL 3
  64. X  
  65. X  static char DPMsg[] = "Debug and Purge options conflict - Purge chosen.\n";
  66. X  static char DPCMsg[] = "Calendar overrides Debug and Purge options.\n";
  67. X--- 7,13 ----
  68. X  #include "globals.h"
  69. X  #include "protos.h"
  70. X  
  71. X! #define PATCHLEVEL 4
  72. X  
  73. X  static char DPMsg[] = "Debug and Purge options conflict - Purge chosen.\n";
  74. X  static char DPCMsg[] = "Calendar overrides Debug and Purge options.\n";
  75. X*** ../work-backup/remind.1    Thu Nov 29 09:10:59 1990
  76. X--- ./remind.1    Thu Nov 29 09:12:19 1990
  77. X***************
  78. X*** 1308,1313 ****
  79. X--- 1308,1314 ----
  80. X  .nf
  81. X      REM AT 23:59 RUN (sleep 120; remind -a .reminders) &
  82. X  .fi
  83. X+ .PP
  84. X  This reminder will run at one minute to midnight.  It will cause a new
  85. X  remind process to start at one minute past midnight.  This allows you to
  86. X  have a continuous reminder service so you can work through the night and
  87. SHAR_EOF
  88. $TOUCH -am 1129091490 patch.04 &&
  89. chmod 0600 patch.04 ||
  90. echo "restore of patch.04 failed"
  91. set `wc -c patch.04`;Wc_c=$1
  92. if test "$Wc_c" != "1639"; then
  93.     echo original size 1639, current size $Wc_c
  94. fi
  95. fi
  96. exit 0
  97.