home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume1 / calentool / patch4c / patches04c next >
Encoding:
Text File  |  1989-10-26  |  25.8 KB  |  975 lines

  1. *** /tmp/,RCSt1a05582    Wed Jul 19 20:46:15 1989
  2. --- ras2ps.c    Wed Jul 19 20:31:04 1989
  3. ***************
  4. *** 1,5
  5.   /*
  6. !  * $Header: ras2ps.c,v 2.1 89/05/09 14:19:40 billr Exp $
  7.    */
  8.   /*
  9.    * ras2ps - convert Sun raster file to RLL Postscript file
  10.  
  11. --- 1,5 -----
  12.   /*
  13. !  * $Header: ras2ps.c,v 2.2 89/07/19 20:30:25 billr Exp $
  14.    */
  15.   /*
  16.    * ras2ps - convert Sun raster file to RLL Postscript file
  17. ***************
  18. *** 91,96
  19.        sizey = 10.0;
  20.        transx = transy = 0.5;
  21.        inv = 0;
  22.        ofile = outfile;
  23.        
  24.        if (pr_load_header(infile, &rh) != 0)
  25.  
  26. --- 91,97 -----
  27.        sizey = 10.0;
  28.        transx = transy = 0.5;
  29.        inv = 0;
  30. +      rotate = 90.0;
  31.        ofile = outfile;
  32.        
  33.        if (pr_load_header(infile, &rh) != 0)
  34. *** /tmp/,RCSt1a05587    Wed Jul 19 20:46:18 1989
  35. --- riseset.c    Wed Jul 19 20:31:30 1989
  36. ***************
  37. *** 1,5
  38.   /*
  39. !  * $Header: riseset.c,v 2.1 89/05/09 14:19:49 billr Exp $
  40.    */
  41.   /*
  42.    * riseset.c
  43.  
  44. --- 1,5 -----
  45.   /*
  46. !  * $Header: riseset.c,v 2.2 89/07/19 20:31:05 billr Exp $
  47.    */
  48.   /*
  49.    * riseset.c
  50. ***************
  51. *** 117,123
  52.   #ifdef LONG_DEGREES
  53.       Local = - Longitude/15.;    /* Local apparent time correction */
  54.   #else
  55. !     Local = (double)(-tzp.minuteswest * 60.);
  56.   #endif
  57.   
  58.       sprintf(riseset_buf[B_GMT], "%.24s GMT", gmctime(&UTC));
  59.  
  60. --- 117,123 -----
  61.   #ifdef LONG_DEGREES
  62.       Local = - Longitude/15.;    /* Local apparent time correction */
  63.   #else
  64. !     Local = (double)(-tzp.tz_minuteswest * 60.);
  65.   #endif
  66.   
  67.       sprintf(riseset_buf[B_GMT], "%.24s GMT", gmctime(&UTC));
  68. *** /tmp/,RCSt1a05592    Wed Jul 19 20:46:21 1989
  69. --- tool.c    Wed Jul 19 20:31:39 1989
  70. ***************
  71. *** 1,5
  72.   /*
  73. !  * $Header: tool.c,v 2.1 89/05/09 14:23:08 billr Exp $
  74.    */
  75.   /*
  76.    * tool.c
  77.  
  78. --- 1,5 -----
  79.   /*
  80. !  * $Header: tool.c,v 2.2 89/07/19 20:31:31 billr Exp $
  81.    */
  82.   /*
  83.    * tool.c
  84. ***************
  85. *** 29,34
  86.   #include <sys/file.h>
  87.   #include "ct.h"
  88.   
  89.   extern struct tm current;
  90.   extern Frame frame;
  91.   extern int working_msg;
  92.  
  93. --- 29,41 -----
  94.   #include <sys/file.h>
  95.   #include "ct.h"
  96.   
  97. + /*
  98. +  * define standard B/W monochrome colors as defaults in case we're running
  99. +  * on a color system with the monochrome colors set differently
  100. +  */
  101. + #define FG_DEFAULT  { 0, 0, 0 }     /* black */
  102. + #define BG_DEFAULT  { 255, 255, 255 }   /* white */
  103.   extern struct tm current;
  104.   extern Frame frame;
  105.   extern int working_msg;
  106. ***************
  107. *** 74,79
  108.   #ifndef NO_SUN_MOON
  109.   Canvas scanvas, mcanvas;
  110.   Panel_item sdate_pi, mdate_pi;
  111.   #endif
  112.   Frame prompt_frame = 0;
  113.   Pixrect *morebutton;
  114.  
  115. --- 81,88 -----
  116.   #ifndef NO_SUN_MOON
  117.   Canvas scanvas, mcanvas;
  118.   Panel_item sdate_pi, mdate_pi;
  119. + static struct singlecolor       fg_default = FG_DEFAULT;
  120. + static struct singlecolor       bg_default = BG_DEFAULT;
  121.   #endif
  122.   Frame prompt_frame = 0;
  123.   Pixrect *morebutton;
  124. ***************
  125. *** 264,271
  126.               PANEL_ITEM_Y, ATTR_ROW(2)-2,
  127.                           0);
  128.   
  129. !     next_menu = menu_create(MENU_STRINGS,
  130. !             "Tommorow", "Next Week", "Next Month", "Next Year", 0,
  131.               0);
  132.       
  133.       next_pi = panel_create_item(panel, PANEL_BUTTON,
  134.  
  135. --- 273,280 -----
  136.               PANEL_ITEM_Y, ATTR_ROW(2)-2,
  137.                           0);
  138.   
  139. !     next_menu = menu_create(MENU_STRINGS, "Tomorrow",
  140. !             "Next Week", "Next Month", "Next Year", 0,
  141.               0);
  142.       
  143.       next_pi = panel_create_item(panel, PANEL_BUTTON,
  144. ***************
  145. *** 445,451
  146.           }
  147.       } else
  148.           bigfont = pf_open("/usr/lib/fonts/fixedwidthfonts/gallant.r.10");
  149. !     /* font for displaying time under the icon */
  150.       sfont = pf_open("/usr/lib/fonts/fixedwidthfonts/screen.r.7");
  151.   }
  152.   
  153.  
  154. --- 454,466 -----
  155.           }
  156.       } else
  157.           bigfont = pf_open("/usr/lib/fonts/fixedwidthfonts/gallant.r.10");
  158. !     /* double check */
  159. !     if (bigfont == NULL) {
  160. !         err_rpt("unable to open large size font", NON_FATAL);
  161. !         bigfont = pw_pfsysopen();
  162. !     }
  163. !     /* font for displaying time under the icon and days under moon */
  164.       sfont = pf_open("/usr/lib/fonts/fixedwidthfonts/screen.r.7");
  165.   }
  166.   
  167. ***************
  168. *** 761,766
  169.                   WIN_SHOW, TRUE, WIN_X, ATTR_COL(12),
  170.                   FRAME_LABEL, "Lunar Data",
  171.                   FRAME_SHOW_LABEL, TRUE,
  172.                   FRAME_DONE_PROC, mframe_done,
  173.                   WIN_ERROR_MSG, "Can't create moon data frame.",
  174.                   0);
  175.  
  176. --- 776,784 -----
  177.                   WIN_SHOW, TRUE, WIN_X, ATTR_COL(12),
  178.                   FRAME_LABEL, "Lunar Data",
  179.                   FRAME_SHOW_LABEL, TRUE,
  180. +                 FRAME_INHERIT_COLORS, TRUE,
  181. +                 FRAME_FOREGROUND_COLOR, &fg_default,
  182. +                 FRAME_BACKGROUND_COLOR, &bg_default,
  183.                   FRAME_DONE_PROC, mframe_done,
  184.                   WIN_ERROR_MSG, "Can't create moon data frame.",
  185.                   0);
  186. *** /tmp/,RCSt1a05597    Wed Jul 19 20:46:26 1989
  187. --- utils.c    Wed Jul 19 20:32:25 1989
  188. ***************
  189. *** 1,5
  190.   /*
  191. !  * $Header: utils.c,v 2.2 89/05/16 16:30:18 billr Exp $
  192.    */
  193.   /*
  194.    * utils.c
  195.  
  196. --- 1,5 -----
  197.   /*
  198. !  * $Header: utils.c,v 2.3 89/07/19 20:31:40 billr Exp $
  199.    */
  200.   /*
  201.    * utils.c
  202. ***************
  203. *** 729,734
  204.   /*
  205.    * Print today's appointments to stdout or mail (useful if we only have an ASCII
  206.    * terminal connected to our Sun). Invoked by the "-p", "-P" or "-m" options.
  207.    */
  208.   print_apts(level)
  209.   int level;
  210.  
  211. --- 729,735 -----
  212.   /*
  213.    * Print today's appointments to stdout or mail (useful if we only have an ASCII
  214.    * terminal connected to our Sun). Invoked by the "-p", "-P" or "-m" options.
  215. +  * Month information is only printed as PostScript output.
  216.    */
  217.   print_apts(which, dest)
  218.   int which, dest;
  219. ***************
  220. *** 730,737
  221.    * Print today's appointments to stdout or mail (useful if we only have an ASCII
  222.    * terminal connected to our Sun). Invoked by the "-p", "-P" or "-m" options.
  223.    */
  224. ! print_apts(level)
  225. ! int level;
  226.   {
  227.       int i;
  228.       FILE *output, *popen();
  229.  
  230. --- 731,738 -----
  231.    * terminal connected to our Sun). Invoked by the "-p", "-P" or "-m" options.
  232.    * Month information is only printed as PostScript output.
  233.    */
  234. ! print_apts(which, dest)
  235. ! int which, dest;
  236.   {
  237.       int i;
  238.       FILE *output, *pfp, *popen();
  239. ***************
  240. *** 734,742
  241.   int level;
  242.   {
  243.       int i;
  244. !     FILE *output, *popen();
  245. !     char cmd[80], *name, *cuserid(), *format_appt();
  246. !     struct appt_entry tmp_apt, *sptr;
  247.   
  248.       fix_current_day();
  249.       get_day_appts();
  250.  
  251. --- 735,742 -----
  252.   int which, dest;
  253.   {
  254.       int i;
  255. !     FILE *output, *pfp, *popen();
  256. !     char cmd[80], *name, *cuserid();
  257.   
  258.       if (dest == DST_MAIL)
  259.           /* only mail one day's appts */
  260. ***************
  261. *** 738,743
  262.       char cmd[80], *name, *cuserid(), *format_appt();
  263.       struct appt_entry tmp_apt, *sptr;
  264.   
  265.       fix_current_day();
  266.       get_day_appts();
  267.       if (level == 2) {
  268.  
  269. --- 738,746 -----
  270.       FILE *output, *pfp, *popen();
  271.       char cmd[80], *name, *cuserid();
  272.   
  273. +     if (dest == DST_MAIL)
  274. +         /* only mail one day's appts */
  275. +         which = PRI_DAY;
  276.       fix_current_day();
  277.       if ((which == PRI_DAY) && !get_day_appts())
  278.           return;    /* nothing to show */
  279. ***************
  280. *** 739,746
  281.       struct appt_entry tmp_apt, *sptr;
  282.   
  283.       fix_current_day();
  284. !     get_day_appts();
  285. !     if (level == 2) {
  286.           if (mailto != NULL) {
  287.               name = mailto;
  288.           } else if ((name = cuserid(NULL)) == NULL) {
  289.  
  290. --- 742,750 -----
  291.           /* only mail one day's appts */
  292.           which = PRI_DAY;
  293.       fix_current_day();
  294. !     if ((which == PRI_DAY) && !get_day_appts())
  295. !         return;    /* nothing to show */
  296. !     if (dest == DST_MAIL) {
  297.           if (mailto != NULL) {
  298.               name = mailto;
  299.           } else if ((name = cuserid(NULL)) == NULL) {
  300. ***************
  301. *** 753,759
  302.           output = stdout;
  303.       }
  304.       
  305. !     fprintf(output,"\n\t*** Appointments for %s %s %d, 19%02d ***\n\n", 
  306.           daynames[current.tm_wday], monthnames[current.tm_mon],
  307.           current.tm_mday, current.tm_year);
  308.       
  309.  
  310. --- 757,794 -----
  311.           output = stdout;
  312.       }
  313.       
  314. !     if (which == PRI_DAY || which == PRI_DAY_XNOTES) {
  315. !         print_one_day(which, output);
  316. !     } else if (which == PRI_WEEK || which == PRI_WEEK_XNOTES) {
  317. !         current.tm_mday -= current.tm_wday; /* Sunday of this week */
  318. !         fix_current_day();
  319. !         if (nr_weekdays < 7) {
  320. !             current.tm_mday++;
  321. !             fix_current_day();
  322. !         }
  323. !         for (i=0;i<nr_weekdays;i++) {
  324. !             if (get_day_appts())
  325. !                 print_one_day(which, output);
  326. !             current.tm_mday++;
  327. !             fix_current_day();
  328. !         }
  329. !     } else if (which == PRI_MONTH || which == PRI_MONTH_XNOTES) {
  330. !         print_month(output, (which == PRI_MONTH_XNOTES ? TRUE : FALSE));
  331. !     }
  332. !     fflush(output);
  333. !     if (dest == DST_MAIL)
  334. !         pclose(output);
  335. ! }
  336. ! print_one_day(which, output)
  337. ! int which;
  338. ! FILE *output;
  339. ! {
  340. !     int i;
  341. !     struct appt_entry tmp_apt;
  342. !     char *format_appt();
  343. !     fprintf(output,"\n\t*** Appointments for %s %s %d, %d ***\n\n", 
  344.           daynames[current.tm_wday], monthnames[current.tm_mon],
  345.           current.tm_mday, current.tm_year+1900);
  346.   
  347. ***************
  348. *** 755,762
  349.       
  350.       fprintf(output,"\n\t*** Appointments for %s %s %d, 19%02d ***\n\n", 
  351.           daynames[current.tm_wday], monthnames[current.tm_mon],
  352. !         current.tm_mday, current.tm_year);
  353. !     
  354.       for (i=0; i<N_SLOTS; i++) {
  355.           if (i == n_tslots)
  356.               /* start of notes section */
  357.  
  358. --- 790,797 -----
  359.   
  360.       fprintf(output,"\n\t*** Appointments for %s %s %d, %d ***\n\n", 
  361.           daynames[current.tm_wday], monthnames[current.tm_mon],
  362. !         current.tm_mday, current.tm_year+1900);
  363.       for (i=0; i<N_SLOTS; i++) {
  364.           if (i == n_tslots)
  365.               /* start of notes section */
  366. ***************
  367. *** 765,771
  368.               /* at least one appt here */
  369.               slots[i].cur_appt = slots[i].first;
  370.               do {
  371. !                 if (level == 3 && ((slots[i].cur_appt->flags & MARKED_NOTE) == MARKED_NOTE))
  372.                       continue;
  373.                   if (chk_deleted(i))
  374.                       continue;
  375.  
  376. --- 800,806 -----
  377.               /* at least one appt here */
  378.               slots[i].cur_appt = slots[i].first;
  379.               do {
  380. !                 if ((which & PRI_XNOTES) && ((slots[i].cur_appt->flags & MARKED_NOTE) == MARKED_NOTE))
  381.                       continue;
  382.                   if (chk_deleted(i))
  383.                       continue;
  384. ***************
  385. *** 783,791
  386.           for (i=0; i<findex; i++)
  387.               fprintf(output, "%s\n", format_appt(&future[i]));
  388.       }
  389. -     fflush(output);
  390. -     if (level == 2)
  391. -         pclose(output);
  392.   }
  393.   
  394.   /*
  395.  
  396. --- 818,823 -----
  397.           for (i=0; i<findex; i++)
  398.               fprintf(output, "%s\n", format_appt(&future[i]));
  399.       }
  400.   }
  401.   
  402.   /*
  403. ***************
  404. *** 989,994
  405.   
  406.   /*
  407.    * convert appt entry to ASCII string for display with time and msg
  408.    */
  409.   char *
  410.   format_appt_nd(appt)
  411.  
  412. --- 1021,1027 -----
  413.   
  414.   /*
  415.    * convert appt entry to ASCII string for display with time and msg
  416. +  *    if <esc_parens> is true then put '\' in front of parens (for Ps)
  417.    */
  418.   char *
  419.   format_appt_nd(appt, esc_parens)
  420. ***************
  421. *** 991,997
  422.    * convert appt entry to ASCII string for display with time and msg
  423.    */
  424.   char *
  425. ! format_appt_nd(appt)
  426.   struct appt_entry *appt;
  427.   {
  428.       int e_hour, e_minutes, duration;
  429.  
  430. --- 1024,1030 -----
  431.    *    if <esc_parens> is true then put '\' in front of parens (for Ps)
  432.    */
  433.   char *
  434. ! format_appt_nd(appt, esc_parens)
  435.   struct appt_entry *appt;
  436.   int    esc_parens;
  437.   {
  438. ***************
  439. *** 993,998
  440.   char *
  441.   format_appt_nd(appt)
  442.   struct appt_entry *appt;
  443.   {
  444.       int e_hour, e_minutes, duration;
  445.       struct tm Save;
  446.  
  447. --- 1026,1032 -----
  448.   char *
  449.   format_appt_nd(appt, esc_parens)
  450.   struct appt_entry *appt;
  451. + int    esc_parens;
  452.   {
  453.       int e_hour, e_minutes, duration;
  454.       char *p, *q;
  455. ***************
  456. *** 995,1000
  457.   struct appt_entry *appt;
  458.   {
  459.       int e_hour, e_minutes, duration;
  460.       struct tm Save;
  461.   
  462.       if (appt->arrows > 0) {
  463.  
  464. --- 1029,1035 -----
  465.   int    esc_parens;
  466.   {
  467.       int e_hour, e_minutes, duration;
  468. +     char *p, *q;
  469.       struct tm Save;
  470.   
  471.       if (appt->arrows > 0) {
  472. ***************
  473. *** 1010,1019
  474.           ++e_hour;
  475.       }
  476.   
  477. !     if (appt->flags & A_NOTE) {
  478. !         /* note */
  479. !         sprintf(strbuf,"%s", appt->str);
  480. !     } else
  481.           /* standard appointment */
  482.           sprintf(strbuf,"%2d:%02d to %2d:%02d   %s",
  483.               appt->hour, appt->minute, e_hour, e_minutes, appt->str);
  484.  
  485. --- 1045,1052 -----
  486.           ++e_hour;
  487.       }
  488.   
  489. !     strbuf[0] = '\0';
  490. !     if (!(appt->flags & A_NOTE))
  491.           /* standard appointment */
  492.           sprintf(strbuf,"%2d:%02d to %2d:%02d  ",
  493.               appt->hour, appt->minute, e_hour, e_minutes);
  494. ***************
  495. *** 1015,1022
  496.           sprintf(strbuf,"%s", appt->str);
  497.       } else
  498.           /* standard appointment */
  499. !         sprintf(strbuf,"%2d:%02d to %2d:%02d   %s",
  500. !             appt->hour, appt->minute, e_hour, e_minutes, appt->str);
  501.   
  502.       return(strbuf);
  503.   }
  504.  
  505. --- 1048,1077 -----
  506.       strbuf[0] = '\0';
  507.       if (!(appt->flags & A_NOTE))
  508.           /* standard appointment */
  509. !         sprintf(strbuf,"%2d:%02d to %2d:%02d  ",
  510. !             appt->hour, appt->minute, e_hour, e_minutes);
  511. !     p = appt->str;
  512. !     q = strbuf + strlen(strbuf);
  513. !     while (*p) {
  514. !         if (esc_parens)
  515. !             switch (*p) {
  516. !                 /* ignore these */
  517. !                 case '\b':
  518. !                 case '\f':
  519. !                 case '\n':
  520. !                 case '\r':
  521. !                 case '\t':
  522. !                     break;
  523. !                 /* escape these for PostScript */
  524. !                 case '\\':
  525. !                 case '(':
  526. !                 case ')':
  527. !                     *q++ = '\\';
  528. !                     break;
  529. !             }
  530. !         *q++ = *p++;
  531. !     }
  532. !     *q = '\0';
  533.   
  534.       return(strbuf);
  535.   }
  536. ***************
  537. *** 1150,1156
  538.                   } else
  539.                       err_rpt("can't open tmp ps file", NON_FATAL);
  540.               } else {
  541. !                 sprintf(prntcmd, "%s %s", printer, rasfile);
  542.                   system(prntcmd);
  543.               }
  544.               pr_destroy(save_pr);
  545.  
  546. --- 1205,1211 -----
  547.                   } else
  548.                       err_rpt("can't open tmp ps file", NON_FATAL);
  549.               } else {
  550. !                 sprintf(prntcmd, "%s -v %s", printer, rasfile);
  551.                   system(prntcmd);
  552.               }
  553.               pr_destroy(save_pr);
  554. ***************
  555. *** 1162,1168
  556.               err_rpt("only PostScript output available for month printout", NON_FATAL);
  557.           } else {
  558.               if ((pfp = fopen(psfile, "w")) != NULL) {
  559. !                 print_month(pfp);
  560.                   fclose(pfp);
  561.                   sprintf(prntcmd, "%s %s", printer, psfile);
  562.                   system(prntcmd);
  563.  
  564. --- 1217,1223 -----
  565.               err_rpt("only PostScript output available for month printout", NON_FATAL);
  566.           } else {
  567.               if ((pfp = fopen(psfile, "w")) != NULL) {
  568. !                 print_month(pfp, FALSE);
  569.                   fclose(pfp);
  570.                   sprintf(prntcmd, "%s %s", printer, psfile);
  571.                   system(prntcmd);
  572. *** /tmp/,RCSt1a06124    Tue Sep 19 06:10:02 1989
  573. --- version.c    Tue Sep 19 06:09:35 1989
  574. ***************
  575. *** 1,5
  576.   /*
  577. !  * $Header: version.c,v 2.3 89/05/16 16:31:58 billr Exp $
  578.    */
  579.   /*
  580.    * version.c - current version of calentool program
  581.  
  582. --- 1,5 -----
  583.   /*
  584. !  * $Header: version.c,v 2.5 89/09/19 06:09:07 billr Exp $
  585.    */
  586.   /*
  587.    * version.c - current version of calentool program
  588. ***************
  589. *** 24,27
  590.    * notice remains intact.
  591.    */
  592.   
  593. ! char version[] = "Calendar Tool V2.1p2";
  594.  
  595. --- 24,27 -----
  596.    * notice remains intact.
  597.    */
  598.   
  599. ! char version[] = "Calendar Tool V2.1p4";
  600. *** /tmp/,RCSt1a05609    Wed Jul 19 20:46:32 1989
  601. --- wpaint.c    Wed Jul 19 20:32:47 1989
  602. ***************
  603. *** 1,5
  604.   /*
  605. !  * $Header: wpaint.c,v 2.1 89/05/09 14:20:03 billr Exp $
  606.    */
  607.   /*
  608.    * wpaint.c
  609.  
  610. --- 1,5 -----
  611.   /*
  612. !  * $Header: wpaint.c,v 2.2 89/07/19 20:32:38 billr Exp $
  613.    */
  614.   /*
  615.    * wpaint.c
  616. ***************
  617. *** 69,75
  618.       draw_week_appts();
  619.       pw_batch_off(main_pixwin);
  620.       current = Save;
  621. !     get_day_appts();
  622.       working(FALSE);
  623.       unlock_cursors();
  624.   }
  625.  
  626. --- 69,75 -----
  627.       draw_week_appts();
  628.       pw_batch_off(main_pixwin);
  629.       current = Save;
  630. !     (void)get_day_appts();
  631.       working(FALSE);
  632.       unlock_cursors();
  633.   }
  634. *** /tmp/,RCSt1a05614    Wed Jul 19 20:46:33 1989
  635. --- Makefile    Wed Jul 19 20:33:12 1989
  636. ***************
  637. *** 1,4
  638. ! # $Header: Makefile,v 2.1 89/05/09 14:29:00 billr Exp $
  639.   #
  640.   # make sure LIBDIR here matches DATELIB_DIR in ct.h (or use -D)
  641.   BINDIR = /usr/local/bin
  642.  
  643. --- 1,4 -----
  644. ! # $Header: Makefile,v 2.2 89/07/19 20:32:48 billr Exp $
  645.   #
  646.   #DATELIB_DIR  Directory containing the Date Library
  647.   #PRINT_CMD    Command to send postscript to appropriate printer
  648. ***************
  649. *** 1,5
  650.   # $Header: Makefile,v 2.1 89/05/09 14:29:00 billr Exp $
  651.   #
  652.   # make sure LIBDIR here matches DATELIB_DIR in ct.h (or use -D)
  653.   BINDIR = /usr/local/bin
  654.   LIBDIR = /usr/local/lib/calentool
  655.  
  656. --- 1,25 -----
  657.   # $Header: Makefile,v 2.2 89/07/19 20:32:48 billr Exp $
  658.   #
  659. + #DATELIB_DIR  Directory containing the Date Library
  660. + #PRINT_CMD    Command to send postscript to appropriate printer
  661. + #NR_WEEKDAYS  Define to number of days in week to display (5-7)
  662. + #START_HOUR   What is first hour of day to display
  663. + #END_HOUR     What is last hour of day to display
  664. + #START_YEAR   What is first year of calendar to display
  665. + #NR_YEARS     How many years to display.
  666. + #UPDATE_RATE  How often to perform updates (second or minute)?
  667. + #APPT_CHECK_LIMIT What limits to check for appointments (see ct.h)
  668. + #
  669. + #NO_PRINTER   No printing is supported
  670. + #RASTER_ONLY  Define if no PostScript printer available.
  671. + #NO_HOLIDAYS  No holiday display is supported
  672. + #NO_SUN_MOON  No sun and moon phase info is supported
  673. + #
  674. + #BINDIR       Where to install binaries
  675. + #LIBDIR       Where to install date files and utility binaries
  676. + #MANDIR       Where to install man pages
  677. + #DEFSDIR      Where to install calentool default values
  678. + #
  679.   # make sure LIBDIR here matches DATELIB_DIR in ct.h (or use -D)
  680.   BINDIR = /usr/local/bin
  681.   LIBDIR = /usr/local/lib/calentool
  682. ***************
  683. *** 7,12
  684.   DEFSDIR = /usr/lib/defaults
  685.   MANEXT = l
  686.   
  687.   DEFINES=  #-DDATELIB_DIR=\"./dates\" -DSTART_HOUR=7 -DEND_HOUR=19 -DSTART_YEAR=88
  688.   CFLAGS=    -O ${DEFINES}
  689.   LIBS=    -lsuntool -lsunwindow -lpixrect -lm
  690.  
  691. --- 27,33 -----
  692.   DEFSDIR = /usr/lib/defaults
  693.   MANEXT = l
  694.   
  695. + CC = cc
  696.   DEFINES=  #-DDATELIB_DIR=\"./dates\" -DSTART_HOUR=7 -DEND_HOUR=19 -DSTART_YEAR=88
  697.   CFLAGS=    -g ${DEFINES}
  698.   LIBS=    -lsuntool -lsunwindow -lpixrect -lm
  699. ***************
  700. *** 8,14
  701.   MANEXT = l
  702.   
  703.   DEFINES=  #-DDATELIB_DIR=\"./dates\" -DSTART_HOUR=7 -DEND_HOUR=19 -DSTART_YEAR=88
  704. ! CFLAGS=    -O ${DEFINES}
  705.   LIBS=    -lsuntool -lsunwindow -lpixrect -lm
  706.   
  707.   DATEFILES= dates/README dates/celtic dates/events dates/lives\
  708.  
  709. --- 29,35 -----
  710.   
  711.   CC = cc
  712.   DEFINES=  #-DDATELIB_DIR=\"./dates\" -DSTART_HOUR=7 -DEND_HOUR=19 -DSTART_YEAR=88
  713. ! CFLAGS=    -g ${DEFINES}
  714.   LIBS=    -lsuntool -lsunwindow -lpixrect -lm
  715.   
  716.   DATEFILES= dates/README dates/celtic dates/computing dates/events\
  717. ***************
  718. *** 11,19
  719.   CFLAGS=    -O ${DEFINES}
  720.   LIBS=    -lsuntool -lsunwindow -lpixrect -lm
  721.   
  722. ! DATEFILES= dates/README dates/celtic dates/events dates/lives\
  723. !      dates/lotr dates/nature dates/popcult\
  724. !      dates/usa_holiday dates/usa_other dates/usa_states dates/world
  725.   SRCS=    calentool.c datelib.o devent.c dpaint.c event.c holidays.c\
  726.        init.c moon.c mpaint.c notify.c ras2ps.c riseset.c tool.c utils.c\
  727.        version.c wevent.c wpaint.c ypaint.c
  728.  
  729. --- 32,41 -----
  730.   CFLAGS=    -g ${DEFINES}
  731.   LIBS=    -lsuntool -lsunwindow -lpixrect -lm
  732.   
  733. ! DATEFILES= dates/README dates/celtic dates/computing dates/events\
  734. !      dates/lives dates/lotr dates/nature dates/popcult\
  735. !      dates/usa_holiday dates/usa_other dates/usa_states dates/world\
  736. !      dates/gdead dates/space
  737.   SRCS=    calentool.c datelib.o devent.c dpaint.c event.c holidays.c\
  738.        init.c moon.c mpaint.c notify.c pcal.c ras2ps.c riseset.c tool.c utils.c\
  739.        version.c wevent.c wpaint.c ypaint.c
  740. ***************
  741. *** 15,21
  742.        dates/lotr dates/nature dates/popcult\
  743.        dates/usa_holiday dates/usa_other dates/usa_states dates/world
  744.   SRCS=    calentool.c datelib.o devent.c dpaint.c event.c holidays.c\
  745. !      init.c moon.c mpaint.c notify.c ras2ps.c riseset.c tool.c utils.c\
  746.        version.c wevent.c wpaint.c ypaint.c
  747.   INCLUDES= ct.h event.h paint.h patchlevel.h riseset.h
  748.   OBJS=    calentool.o datelib.o devent.o dpaint.o event.o holidays.o\
  749.  
  750. --- 37,43 -----
  751.        dates/usa_holiday dates/usa_other dates/usa_states dates/world\
  752.        dates/gdead dates/space
  753.   SRCS=    calentool.c datelib.o devent.c dpaint.c event.c holidays.c\
  754. !      init.c moon.c mpaint.c notify.c pcal.c ras2ps.c riseset.c tool.c utils.c\
  755.        version.c wevent.c wpaint.c ypaint.c
  756.   INCLUDES= ct.h event.h paint.h patchlevel.h riseset.h
  757.   OBJS=    calentool.o datelib.o devent.o dpaint.o event.o holidays.o\
  758. ***************
  759. *** 19,25
  760.        version.c wevent.c wpaint.c ypaint.c
  761.   INCLUDES= ct.h event.h paint.h patchlevel.h riseset.h
  762.   OBJS=    calentool.o datelib.o devent.o dpaint.o event.o holidays.o\
  763. !      init.o moon.o mpaint.o notify.o ras2ps.o riseset.o tool.o utils.o\
  764.        version.o wevent.o wpaint.o ypaint.o
  765.   
  766.   all: calentool conv_tools
  767.  
  768. --- 41,47 -----
  769.        version.c wevent.c wpaint.c ypaint.c
  770.   INCLUDES= ct.h event.h paint.h patchlevel.h riseset.h
  771.   OBJS=    calentool.o datelib.o devent.o dpaint.o event.o holidays.o\
  772. !      init.o moon.o mpaint.o notify.o pcal.o ras2ps.o riseset.o tool.o utils.o\
  773.        version.o wevent.o wpaint.o ypaint.o
  774.   
  775.   all: calentool conv_tools
  776. ***************
  777. *** 26,32
  778.   
  779.   # the main program
  780.   calentool: ${OBJS}
  781. !     cc ${CFLAGS} -o calentool ${OBJS} ${LIBS}
  782.   
  783.   calentool.o: calentool.c ct.h std.icon rev.icon nap.icon
  784.   datelib.o: datelib.c
  785.  
  786. --- 48,54 -----
  787.   
  788.   # the main program
  789.   calentool: ${OBJS}
  790. !     ${CC} ${CFLAGS} -o calentool ${OBJS} ${LIBS}
  791.   
  792.   calentool.o: calentool.c ct.h std.icon rev.icon nap.icon
  793.   datelib.o: datelib.c
  794. ***************
  795. *** 38,43
  796.   mpaint.o: mpaint.c ct.h paint.h
  797.   notify.o: notify.c ct.h
  798.   event.o: event.c ct.h event.h
  799.   ras2ps.o: ras2ps.c
  800.   riseset.o: riseset.h
  801.   tool.o: tool.c ct.h
  802.  
  803. --- 60,66 -----
  804.   mpaint.o: mpaint.c ct.h paint.h
  805.   notify.o: notify.c ct.h
  806.   event.o: event.c ct.h event.h
  807. + pcal.o:    pcal.c ct.h
  808.   ras2ps.o: ras2ps.c
  809.   riseset.o: riseset.h
  810.   tool.o: tool.c ct.h
  811. ***************
  812. *** 69,76
  813.       install -s month2ct ${LIBDIR}
  814.       install -s mt2ct ${LIBDIR}
  815.       install -c -m 444 mt2ct.1 ${MANDIR}/mt2ct.${MANEXT}
  816. !     cd ${MANDIR}; ln -s mt2ct.${MANEXT} cal2ct.${MANEXT};
  817. !     cd ${MANDIR}; ln -s mt2ct.${MANEXT} month2ct.${MANEXT};
  818.   
  819.   clean:
  820.       rm -f *.o *.BAK core
  821.  
  822. --- 92,103 -----
  823.       install -s month2ct ${LIBDIR}
  824.       install -s mt2ct ${LIBDIR}
  825.       install -c -m 444 mt2ct.1 ${MANDIR}/mt2ct.${MANEXT}
  826. !     cd ${MANDIR}; \
  827. !         rm -f cal2ct.${MANEXT}; \
  828. !         ln -s mt2ct.${MANEXT} cal2ct.${MANEXT};
  829. !     cd ${MANDIR}; \
  830. !         rm -f month2ct.${MANEXT}; \
  831. !         ln -s mt2ct.${MANEXT} month2ct.${MANEXT};
  832.   
  833.   clean:
  834.       rm -f *.o *.BAK core *~ #*#
  835. ***************
  836. *** 73,77
  837.       cd ${MANDIR}; ln -s mt2ct.${MANEXT} month2ct.${MANEXT};
  838.   
  839.   clean:
  840. !     rm -f *.o *.BAK core
  841.   
  842.  
  843. --- 100,106 -----
  844.           ln -s mt2ct.${MANEXT} month2ct.${MANEXT};
  845.   
  846.   clean:
  847. !     rm -f *.o *.BAK core *~ #*#
  848.   
  849.   veryclean:
  850.       rm -f calentool cal2ct month2ct mt2ct *.o *.BAK core *~ #*#
  851. ***************
  852. *** 75,77
  853.   clean:
  854.       rm -f *.o *.BAK core
  855.   
  856.  
  857. --- 102,112 -----
  858.   clean:
  859.       rm -f *.o *.BAK core *~ #*#
  860.   
  861. + veryclean:
  862. +     rm -f calentool cal2ct month2ct mt2ct *.o *.BAK core *~ #*#
  863. + # If you are using GNU make, the following statement will cause it to
  864. + # ignore any (bogus) files named `clean', `all', etc.; if you are using
  865. + # the standard Sun or bsd make, it won't hurt anything...
  866. + #
  867. + .PHONY: clean veryclean install all
  868. *** /tmp/,RCSt1a18697    Fri Aug 11 07:44:25 1989
  869. --- Bugs    Fri Aug 11 07:42:31 1989
  870. ***************
  871. *** 7,12
  872.   2) Arrow display messes up on rare occasions.  I haven't duplicated
  873.      this often enough to track down.
  874.   
  875.   
  876.   If you fix any of these, or spot other bugs, please let me know.
  877.   
  878.  
  879. --- 7,15 -----
  880.   2) Arrow display messes up on rare occasions.  I haven't duplicated
  881.      this often enough to track down.
  882.   
  883. + The following bugs have been reported by various users, but I haven't
  884. + been able to fix them, since I haven't been able to duplicate them
  885. + (usually due to hardware/os combinations I don't have access to).
  886.   
  887.   *Calentool dies (seg fault) after running overnight with lockscreen <mfeblowitz@ge.com>
  888.   *Core dump when clicking MS-MIDDLE button on note section on 386i <jmc@ptsfa.pacbell.com>
  889. ***************
  890. *** 8,13
  891.      this often enough to track down.
  892.   
  893.   
  894.   If you fix any of these, or spot other bugs, please let me know.
  895.   
  896.           Bill Randle
  897.  
  898. --- 11,23 -----
  899.   been able to fix them, since I haven't been able to duplicate them
  900.   (usually due to hardware/os combinations I don't have access to).
  901.   
  902. + *Calentool dies (seg fault) after running overnight with lockscreen <mfeblowitz@ge.com>
  903. + *Core dump when clicking MS-MIDDLE button on note section on 386i <jmc@ptsfa.pacbell.com>
  904. + *Memory leakage <vicorp!sparky!scott@uunet.uu.net>
  905. + *Popup error window only gets partially displayed (OS 4.0.3/Sun3) <rohit@sun.com>
  906. + ?Deleting single occurrance of multiple meeting doesn't really delete it <ecm@aloft.uucp>
  907. + ?Running calentool forces icon gravity change on 386i <lwv27%chemabs@cis.ohio-state.edu>
  908.   If you fix any of these, or spot other bugs, please let me know.
  909.   
  910.           Bill Randle
  911. ***************
  912. *** 13,16
  913.           Bill Randle
  914.           billr@saab.CNA.TEK.COM
  915.           {most backbones}!tektronix!saab.CNA.TEK!billr
  916. !         May 10, 1989
  917.  
  918. --- 23,26 -----
  919.           Bill Randle
  920.           billr@saab.CNA.TEK.COM
  921.           {most backbones}!tektronix!saab.CNA.TEK!billr
  922. !         August 11, 1989
  923. *** /tmp/,RCSt1a18717    Fri Aug 11 07:48:18 1989
  924. --- ToDo    Fri Aug 11 07:42:50 1989
  925. ***************
  926. *** 4,6
  927.      View2 may be the way to do this.
  928.   
  929.   2) Add Lunar based (e.g. Chinese, Japanese) holidays.
  930.  
  931. --- 4,39 -----
  932.      View2 may be the way to do this.
  933.   
  934.   2) Add Lunar based (e.g. Chinese, Japanese) holidays.
  935. + 3) Add calculations for more astronomical events.
  936. + 4) Convert display canvas to scrollable canvas to allow longer
  937. +    time periods.
  938. + 5) Extend next and previous menus.
  939. + 3, 4 and 5, at least, will be in version 2.2....
  940. + The following feature enhancements have been suggested by various
  941. + users. Some of these may appear in version 2.2, some may not. Feel
  942. + free to send me your suggestions, or to vote on the ones listed
  943. + here.
  944. + =Add menu to Filename: option, add flags to #include directive to
  945. +  indicate a)if name should appear in Filename: menu, b) read/write
  946. +  default, c) string to appear in Filename: menu; <jcn@neptune.uucp>
  947. + =Long months don't fit on year listing <mcneill%eplrx7@uunet.uu.net>, <rwolff@noao.edu>
  948. + =Want Next and Previous menus to display multiple date selections <
  949. + =Want Quit and Close buttons <phil@grumpy.cgrg.ohio-state.edu>, <mcneill%eplrx7@uunet.uu.net>, <rohit@sun.com>
  950. + =Want command line option to set start and end time <brooks@ge-dab.ge.com>
  951. + =Want easy switch between different users appts <ptraynor@bbn.com>
  952. + =Want long days (really scrollable day) <syd@dsi.com>
  953. + =Want range of dates for printing <ian@sq.com>
  954. + =Want to be able to set START_HOUR > END_HOUR <sga@dip.eecs.umich.edu>
  955. + =Want to come up in week display <bob@boulder.colorado.edu>
  956. + =Want to order the notes (i.e. pick which is displayed first) <dna@emmy.umd.edu>
  957. + =Want to see two days at a time <rohit@sun.com>
  958. + =Want to set duration of an appointment (e.g. gone for 4 days) <jeremy@kheops.cmi.no>
  959. + =Want to start arbitrary process at appt time <wyle@inf.ethz.ch>
  960. + =Want week display to show current day at left, then next 5-7 days <bob@boulder.colorado.edu>
  961. + =Want window to open when appt time approaches <rohit@sun.com>
  962.