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

  1. From: dfs@doe.carleton.ca (David F. Skoll)
  2. Newsgroups: alt.sources
  3. Subject: REMIND 2.2 Patch 02
  4. Message-ID: <dfs.659293025@data>
  5. Date: 22 Nov 90 16:57:05 GMT
  6.  
  7. This is Patch 2 for Remind 2.2.  It fixes a minor bug in the date
  8. calculation routine.  In rare instances, a WEEKDAY-YEAR constraint
  9. allowed triggering on the first weekday of the next year.
  10.  
  11. As always, up-to-date source for Remind can be obtained via ftp
  12. from alfred.ccs.carleton.ca (134.117.1.1) in /pub/remind-2.2.tar.Z
  13.  
  14. --
  15. David Skoll
  16.  
  17. --------------------- CUT HERE -----------------------------
  18. #!/bin/sh
  19. # This is Remind-2.2-patch.02, a shell archive (shar 3.32)
  20. # made 11/22/1990 16:55 UTC by dfs@data
  21. # Source directory /enterprise/navigation/dfs/work/.rem/remind-2.2
  22. #
  23. # existing files will NOT be overwritten
  24. #
  25. # This shar contains:
  26. # length  mode       name
  27. # ------ ---------- ------------------------------------------
  28. #   2051 -rw------- patch.02
  29. #
  30. if touch 2>&1 | fgrep 'amc' > /dev/null
  31.  then TOUCH=touch
  32.  else TOUCH=true
  33. fi
  34. # ============= patch.02 ==============
  35. if test X"$1" != X"-c" -a -f 'patch.02'; then
  36.     echo "File already exists: skipping 'patch.02'"
  37. else
  38. echo "x - extracting patch.02 (Text)"
  39. sed 's/^X//' << 'SHAR_EOF' > patch.02 &&
  40. XPatch 02 - 22 November 1991
  41. XFixes bug in nextdate.c which causes incorrect triggering for the
  42. Xcase when WEEKDAY and YEAR are constrained.
  43. X----------------------------------------------------------------------
  44. X*** ../work-backup/init.c    Thu Nov 22 11:29:49 1990
  45. X--- init.c    Thu Nov 22 11:32:42 1990
  46. X***************
  47. X*** 7,13 ****
  48. X  #include "globals.h"
  49. X  #include "protos.h"
  50. X  
  51. X! #define PATCHLEVEL 1
  52. X  
  53. X  static char DPMsg[] = "Debug and Purge options conflict - Purge chosen.\n";
  54. X  static char DPCMsg[] = "Calendar overrides Debug and Purge options.\n";
  55. X--- 7,13 ----
  56. X  #include "globals.h"
  57. X  #include "protos.h"
  58. X  
  59. X! #define PATCHLEVEL 2
  60. X  
  61. X  static char DPMsg[] = "Debug and Purge options conflict - Purge chosen.\n";
  62. X  static char DPCMsg[] = "Calendar overrides Debug and Purge options.\n";
  63. X*** ../work-backup/nextdate.c    Thu Nov 22 11:29:50 1990
  64. X--- nextdate.c    Thu Nov 22 11:31:26 1990
  65. X***************
  66. X*** 234,240 ****
  67. X       jul = Julian(dd, mm, conyr);
  68. X       while (!(wkday & (1 << (jul % 7)))) jul++;
  69. X       FromJulian(jul, retday, retmon, retyr);
  70. X!      return 0;
  71. X  
  72. X        case 13: /* Weekday, year and day specified */
  73. X       if (y > conyr+1 || (y > conyr && m>0)) return 1;
  74. X--- 234,240 ----
  75. X       jul = Julian(dd, mm, conyr);
  76. X       while (!(wkday & (1 << (jul % 7)))) jul++;
  77. X       FromJulian(jul, retday, retmon, retyr);
  78. X!      if (*retyr == conyr) return 0; else return 1;
  79. X  
  80. X        case 13: /* Weekday, year and day specified */
  81. X       if (y > conyr+1 || (y > conyr && m>0)) return 1;
  82. X***************
  83. X*** 289,295 ****
  84. X          jul = Julian(1, conmon, conyr);
  85. X          while (!(wkday & (1 << (jul % 7)))) jul++;
  86. X          FromJulian(jul, retday, retmon, retyr);
  87. X!         return 0;
  88. X       } else {
  89. X          jul = Julian(d, m, y);
  90. X          while (!(wkday & (1 << (jul % 7)))) jul++;
  91. X--- 289,295 ----
  92. X          jul = Julian(1, conmon, conyr);
  93. X          while (!(wkday & (1 << (jul % 7)))) jul++;
  94. X          FromJulian(jul, retday, retmon, retyr);
  95. X!         if (*retmon == conmon) return 0; else return 1;
  96. X       } else {
  97. X          jul = Julian(d, m, y);
  98. X          while (!(wkday & (1 << (jul % 7)))) jul++;
  99. SHAR_EOF
  100. $TOUCH -am 1122115490 patch.02 &&
  101. chmod 0600 patch.02 ||
  102. echo "restore of patch.02 failed"
  103. set `wc -c patch.02`;Wc_c=$1
  104. if test "$Wc_c" != "2051"; then
  105.     echo original size 2051, current size $Wc_c
  106. fi
  107. fi
  108. exit 0
  109.