home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume19 / rkive / patch01c < prev    next >
Encoding:
Internet Message Format  |  1991-05-09  |  30.8 KB

  1. From: kent@sparky.imd.sterling.com (Kent Landfield)
  2. Newsgroups: comp.sources.misc
  3. Subject: v19i021:  rkive - Usenet sources archiver, Patch01c/3
  4. Message-ID: <1991May9.175743.19567@sparky.IMD.Sterling.COM>
  5. Date: 9 May 91 17:57:43 GMT
  6. Approved: kent@sparky.imd.sterling.com
  7.  
  8. Submitted-by: Kent Landfield <kent@sparky.imd.sterling.com>
  9. Posting-number: Volume 19, Issue 21
  10. Archive-name: rkive/patch01c
  11. Patch-To: rkive: Volume 17, Issue 17-22
  12.  
  13. #!/bin/sh
  14. # do not concatenate these parts, unpack them in order with /bin/sh
  15. # file patch2.1 continued
  16. #
  17. if test ! -r _shar_seq_.tmp; then
  18.     echo 'Please unpack part 1 first!'
  19.     exit 1
  20. fi
  21. (read Scheck
  22.  if test "$Scheck" != 3; then
  23.     echo Please unpack part "$Scheck" next!
  24.     exit 1
  25.  else
  26.     exit 0
  27.  fi
  28. ) < _shar_seq_.tmp || exit 1
  29. if test ! -f _shar_wnt_.tmp; then
  30.     echo 'x - still skipping patch2.1'
  31. else
  32. echo 'x - continuing file patch2.1'
  33. sed 's/^X//' << 'SHAR_EOF' >> 'patch2.1' &&
  34. ! #                          files  are  to  be tested for transit damage.
  35. ! #                          Currently,  only  comp.sources.unix  supports
  36. ! #                          this test with the X-Checksum-Snerfu: header.
  37. ! #                          If this variable is specified, it  must  con-
  38. ! #                          tain  the  full  path  to the command used to
  39. ! #                          perform the test.
  40. X  #                   NNTP - The location of the NNTP server where the articles
  41. X  #                          are to be archived from. This can be specified
  42. X  #                          globally if all or most newsgroups are archived
  43. --- 82,95 ----
  44. X  #                          the available selection format capabilities.
  45. X  #               COMPRESS - The location of the compression utility if the 
  46. X  #                          files are to be reduced.
  47. ! #              CHECKHASH - The location of the article verification utility if  
  48. ! #                          the files  are  to  be tested for transit damage.
  49. ! #                          Currently,  only  comp.sources.unix  and  
  50. ! #                          comp.sources.misc supports this type of testing.
  51. ! #                          The X-Checksum-Snerfu: header is being phased out
  52. ! #                          in favor of the X-Md4-Signature: header.  If this 
  53. ! #                          variable is specified, it  must  contain the full
  54. ! #                          path  to the command used to perform the test.
  55. X  #                   NNTP - The location of the NNTP server where the articles
  56. X  #                          are to be archived from. This can be specified
  57. X  #                          globally if all or most newsgroups are archived
  58. ***************
  59. *** 195,207 ****
  60. X  #                the available selection format capabilities.
  61. X  #     COMPRESS - The location of the compression utility if the files 
  62. X  #                are to be reduced.
  63. ! #    CHECKHASH - The location of the checkhash utility if  the
  64. ! #                files  are  to  be tested for transit damage.
  65. ! #                Currently,  only  comp.sources.unix  supports
  66. ! #                this test with the X-Checksum-Snerfu: header.
  67. ! #                If this variable is specified, it  must  con-
  68. ! #                tain  the  full  path  to the command used to
  69. ! #                perform the test.
  70. X  #         NNTP - The location of the NNTP server where the articles
  71. X  #                are to be archived from.  This can be specified either
  72. X  #                globally, if all or most newsgroups are archived
  73. --- 196,209 ----
  74. X  #                the available selection format capabilities.
  75. X  #     COMPRESS - The location of the compression utility if the files 
  76. X  #                are to be reduced.
  77. ! #    CHECKHASH - The location of the article verification utility if  
  78. ! #                the files  are  to  be tested for transit damage.
  79. ! #                Currently,  only  comp.sources.unix  and  
  80. ! #                comp.sources.misc supports this type of testing.
  81. ! #                The X-Checksum-Snerfu: header is being phased out
  82. ! #                in favor of the X-Md4-Signature: header.  If this 
  83. ! #                variable is specified, it  must  contain the full
  84. ! #                path  to the command used to perform the test.
  85. X  #         NNTP - The location of the NNTP server where the articles
  86. X  #                are to be archived from.  This can be specified either
  87. X  #                globally, if all or most newsgroups are archived
  88. ***************
  89. *** 241,246 ****
  90. --- 243,282 ----
  91. X  #                by the use of PATHLOG.
  92. X  #        
  93. X  ######################################################################
  94. + ###################################
  95. + #
  96. + #   Sterling Archives
  97. + #
  98. + ###################################
  99. + $$comp.sources.3b1
  100. +     BASEDIR: /usenet/3b1
  101. +     TYPE: Volume-Issue
  102. +         INDEX: /usenet/3b1/index
  103. +         INDEX_FORMAT: "%B\t%S" 
  104. +     COMPRESS: /usr/ucb/compress -f
  105. + $$alt.sources
  106. +     BASEDIR: /usenet/alt/sources
  107. +     TYPE: Chronological
  108. +         INDEX: /usenet/alt/sources/index
  109. +         INDEX_FORMAT: "%B\t%S" 
  110. +     COMPRESS: /usr/ucb/compress -f
  111. + $$alt.sources.amiga
  112. +     BASEDIR: /usenet/alt/sources.amiga
  113. +     TYPE: Chronological
  114. +         INDEX: /usenet/alt/sources.amiga/index
  115. +         INDEX_FORMAT: "%O\t%T" 
  116. +     COMPRESS: /usr/ucb/compress -f
  117. + $$alt.sources.patches
  118. +     BASEDIR: /usenet/alt/src.patches
  119. +     TYPE: Chronological
  120. +         INDEX: /usenet/alt/src.patches/index
  121. +         INDEX_FORMAT: "%B\t%S" 
  122. +     COMPRESS: /usr/ucb/compress -f
  123. X  $$comp.sources.amiga        
  124. X      BASEDIR: /usenet/amiga 
  125. X      TYPE: Volume-Issue
  126. ***************
  127. *** 248,253 ****
  128. --- 284,303 ----
  129. X          INDEX_FORMAT: "%B %a %T" 
  130. X      COMPRESS: /usr/ucb/compress -f
  131. X  
  132. + $$comp.sources.apple2
  133. +     BASEDIR: /usenet/apple2
  134. +     TYPE: Volume-Issue
  135. +         INDEX: /usenet/apple2/index
  136. +         INDEX_FORMAT: "%B\t%S" 
  137. +     COMPRESS: /usr/ucb/compress -f
  138. + $$comp.archives
  139. +     BASEDIR: /usenet/archives
  140. +     TYPE: Chronological
  141. +         INDEX: /usenet/archives/index
  142. +         INDEX_FORMAT: "%B %a %T" 
  143. +     COMPRESS: /usr/ucb/compress -f
  144. X  $$comp.sources.atari.st
  145. X      BASEDIR: /usenet/atari/st
  146. X      TYPE: Volume-Issue
  147. ***************
  148. *** 276,293 ****
  149. X          INDEX_FORMAT: "%B %a %T" 
  150. X      COMPRESS: /usr/ucb/compress -f
  151. X  
  152. ! $$comp.sources.unix            
  153. !         BASEDIR: /usenet/unix
  154. !     TYPE: Volume-Issue
  155. !         INDEX: /usenet/unix/index
  156. !         INDEX_FORMAT: "%B %a %T" 
  157. ! #       CHECKHASH: /usr/local/bin/checkhash -s
  158. X      COMPRESS: /usr/ucb/compress -f
  159. X  
  160. ! $$comp.sources.x        
  161. !     BASEDIR: /usenet/x
  162. X      TYPE: Volume-Issue
  163. !         INDEX: /usenet/x/index
  164. X          INDEX_FORMAT: "%B %a %T" 
  165. X      COMPRESS: /usr/ucb/compress -f
  166. X  
  167. --- 326,342 ----
  168. X          INDEX_FORMAT: "%B %a %T" 
  169. X      COMPRESS: /usr/ucb/compress -f
  170. X  
  171. ! $$comp.sources.bugs
  172. !     BASEDIR: /usenet/patches/bugs
  173. !     TYPE: Chronological
  174. !         INDEX: /usenet/patches/bugs/index
  175. !         INDEX_FORMAT: "%B\t%S" 
  176. X      COMPRESS: /usr/ucb/compress -f
  177. X  
  178. ! $$comp.sources.reviewed        
  179. !     BASEDIR: /usenet/reviewed
  180. X      TYPE: Volume-Issue
  181. !         INDEX: /usenet/reviewed/index
  182. X          INDEX_FORMAT: "%B %a %T" 
  183. X      COMPRESS: /usr/ucb/compress -f
  184. X  
  185. ***************
  186. *** 298,345 ****
  187. X          INDEX_FORMAT: "%B %a %T" 
  188. X      COMPRESS: /usr/ucb/compress -f
  189. X  
  190. - $$comp.sources.bugs
  191. -     BASEDIR: /usenet/patches/bugs
  192. -     TYPE: Chronological
  193. -         INDEX: /usenet/patches/bugs/index
  194. -         INDEX_FORMAT: "%B\t%S" 
  195. -     COMPRESS: /usr/ucb/compress -f
  196. - $$comp.sources.3b1
  197. -     BASEDIR: /usenet/3b1
  198. -     TYPE: Volume-Issue
  199. -         INDEX: /usenet/3b1/index
  200. -         INDEX_FORMAT: "%B\t%S" 
  201. -     COMPRESS: /usr/ucb/compress -f
  202. - $$comp.sources.apple2
  203. -     BASEDIR: /usenet/apple2
  204. -     TYPE: Volume-Issue
  205. -         INDEX: /usenet/apple2/index
  206. -         INDEX_FORMAT: "%B\t%S" 
  207. -     COMPRESS: /usr/ucb/compress -f
  208. - $$alt.sources
  209. -     BASEDIR: /usenet/alt/sources
  210. -     TYPE: Only-Archive-Name
  211. -         INDEX: /usenet/alt/sources/index
  212. -         INDEX_FORMAT: "%B\t%S" 
  213. -     COMPRESS: /usr/ucb/compress -f
  214. - $$alt.sources.amiga
  215. -     BASEDIR: /usenet/alt/sources.amiga
  216. -     TYPE: Chronological
  217. -         INDEX: /usenet/alt/sources.amiga/index
  218. -         INDEX_FORMAT: "%O\t%T" 
  219. -     COMPRESS: /usr/ucb/compress -f
  220. - $$alt.sources.patches
  221. -     BASEDIR: /usenet/alt/src.patches
  222. -     TYPE: Chronological
  223. -         INDEX: /usenet/alt/src.patches/index
  224. -         INDEX_FORMAT: "%B\t%S" 
  225. -     COMPRESS: /usr/ucb/compress -f
  226. X  $$u3b.sources
  227. X      BASEDIR: /usenet/u3b
  228. X      TYPE: Chronological
  229. --- 347,352 ----
  230. ***************
  231. *** 347,352 ****
  232. --- 354,367 ----
  233. X          INDEX_FORMAT: "%O\t%T" 
  234. X      COMPRESS: /usr/ucb/compress -f
  235. X  
  236. + $$comp.sources.unix            
  237. +         BASEDIR: /usenet/unix
  238. +     TYPE: Volume-Issue
  239. +         INDEX: /usenet/unix/index
  240. +         INDEX_FORMAT: "%B %a %T" 
  241. + #       CHECKHASH: /usr/local/bin/checkhash -s
  242. +     COMPRESS: /usr/ucb/compress -f
  243. X  $$unix-pc.sources
  244. X      BASEDIR: /usenet/unix-pc
  245. X      TYPE: Article-Number
  246. ***************
  247. *** 361,402 ****
  248. X          INDEX_FORMAT: "%O\t%T" 
  249. X      COMPRESS: /usr/ucb/compress -f
  250. X  
  251. ! $$comp.archives
  252. !     BASEDIR: /usenet/archives
  253. !     TYPE: Chronological
  254. !         INDEX: /usenet/archives/index
  255. X          INDEX_FORMAT: "%B %a %T" 
  256. X      COMPRESS: /usr/ucb/compress -f
  257. X  
  258. X  
  259. - #$$space.shuttle
  260. - #        BASEDIR: /pub/ftp/pub/archive/sci.space.shuttle
  261. - #        TYPE: Article-Number
  262. - #        LOG: /pub/ftp/pub/archive/sci.space.shuttle/log
  263. - #        INDEX: /pub/ftp/pub/archive/sci.space.shuttle/index
  264. - #        LOG_FORMAT: "%O %S"
  265. - #        MATCH: subject glob-matches "space news from * AW&ST*" \
  266. - #        or subject glob-matches "Shuttle Status for ??/??/?? (Forwarded)*" \
  267. - #        or ( subject glob-matches "* (Forwarded)*" and \
  268. - #                not subject glob-matches "Re:*" )
  269. - $$sci.space
  270. -         BASEDIR: /usenet/sci.space
  271. -         TYPE: Article-Number
  272. -         LOG: /usenet/sci.space/log
  273. -         INDEX: /usenet/sci.space/index
  274. -         LOG_FORMAT: "%O %S"
  275. -         MATCH: subject glob-matches "space news from * AW&ST*" \
  276. -         or subject glob-matches "Voyager Status for ??/??/?? (Forwarded)*" \
  277. -         or subject glob-matches "Voyager Update*" \
  278. -         or \
  279. -         subject glob-matches "NASA Headline News for ??/??/?? (Forwarded)*" \
  280. -         or subject glob-matches "News of the Week,*" \
  281. -         or subject glob-matches "Magellan Update - ??/??/??" \
  282. -         or subject glob-matches "Hubble Space Telescope Update - ??/??/??" \
  283. -         or ( subject glob-matches "* (Forwarded)*" and \
  284. -                 not subject glob-matches "Re:*" )
  285. X  $$comp.misc
  286. X          BASEDIR: /usr/doc/news
  287. X          TYPE: External-Command
  288. --- 376,394 ----
  289. X          INDEX_FORMAT: "%O\t%T" 
  290. X      COMPRESS: /usr/ucb/compress -f
  291. X  
  292. ! $$comp.sources.x        
  293. !     BASEDIR: /usenet/x
  294. !     TYPE: Volume-Issue
  295. !         INDEX: /usenet/x/index
  296. X          INDEX_FORMAT: "%B %a %T" 
  297. X      COMPRESS: /usr/ucb/compress -f
  298. X  
  299. + ###################################
  300. + #
  301. + #   PERIODIC POSTINGS
  302. + #
  303. + ###################################
  304. X  
  305. X  $$comp.misc
  306. X          BASEDIR: /usr/doc/news
  307. X          TYPE: External-Command
  308. ***************
  309. *** 430,444 ****
  310. X          or subject glob-matches "Access to UNIX User Groups" \
  311. X          or subject glob-matches "Access to UNIX-Related Publications"
  312. X  
  313. - $$comp.windows.x
  314. -         BASEDIR: /usr/doc/.admin
  315. -         TYPE: External-Command
  316. -         ARCHIVE_CMD: /usr/local/lib/rkive/update_netdocs $m $o $g $U
  317. -         LOG: /usr/doc/.admin/log
  318. -         INDEX: /usr/doc/.admin/index
  319. -         LOG_FORMAT: "%O %S"
  320. -         MATCH: subject glob-matches "Frequently Asked Questions about X *"
  321. X  $$news.admin
  322. X          BASEDIR: /usr/doc/.admin
  323. X          TYPE: External-Command
  324. --- 422,427 ----
  325. ***************
  326. *** 471,474 ****
  327. --- 454,574 ----
  328. X          or subject glob-matches "Alternative Newsgroup Hierarchies" \
  329. X          or subject glob-matches "List of Moderators" \
  330. X          or subject glob-matches "Publicly Accessible Mailing Lists" 
  331. + #
  332. + #################################################
  333. + #
  334. + # Frequently Asked Questions - various newsgroups
  335. + #
  336. + #################################################
  337. + #
  338. + $$comp.windows.x
  339. +         BASEDIR: /usr/doc/.admin
  340. +         TYPE: External-Command
  341. +         ARCHIVE_CMD: /usr/local/lib/rkive/update_netdocs $m $o $g $U
  342. +         LOG: /usr/doc/.admin/log
  343. +         INDEX: /usr/doc/.admin/index
  344. +         LOG_FORMAT: "%O %S"
  345. +         MATCH: subject glob-matches "Frequently Asked Questions about X *"
  346. + $$comp.unix.questions
  347. +         BASEDIR: /usr/doc/.admin
  348. +         TYPE: External-Command
  349. +         ARCHIVE_CMD: /usr/local/lib/rkive/update_netdocs $m $o $g $U
  350. +         LOG: /usr/doc/.admin/log
  351. +         INDEX: /usr/doc/.admin/index
  352. +         LOG_FORMAT: "%O %S"
  353. +         MATCH: subject glob-matches "Frequently Asked Questions about Unix *" \
  354. +     or subject glob-matches "Welcome to comp.unix.questions *"
  355. + $$comp.lang.perl
  356. +         BASEDIR: /usr/doc/.admin
  357. +         TYPE: External-Command
  358. +         ARCHIVE_CMD: /usr/local/lib/rkive/update_netdocs $m $o $g $U
  359. +         LOG: /usr/doc/.admin/log
  360. +         INDEX: /usr/doc/.admin/index
  361. +         LOG_FORMAT: "%O %S"
  362. +         MATCH: subject glob-matches "Frequently Asked Questions about Perl - *"
  363. + $$comp.compilers
  364. +         BASEDIR: /usr/doc/.admin
  365. +         TYPE: External-Command
  366. +         ARCHIVE_CMD: /usr/local/lib/rkive/update_netdocs $m $o $g $U
  367. +         LOG: /usr/doc/.admin/log
  368. +         INDEX: /usr/doc/.admin/index
  369. +         LOG_FORMAT: "%O %S"
  370. +         MATCH: subject glob-matches "comp.compilers monthly message"
  371. + $$comp.os.vms
  372. +         BASEDIR: /usr/doc/.admin
  373. +         TYPE: External-Command
  374. +         ARCHIVE_CMD: /usr/local/lib/rkive/update_netdocs $m $o $g $U
  375. +         LOG: /usr/doc/.admin/log
  376. +         INDEX: /usr/doc/.admin/index
  377. +         LOG_FORMAT: "%O %S"
  378. +         MATCH: subject glob-matches "Monthly info posting: *" \
  379. +         or subject glob-matches "Info-VAX Monthly Posting, Part *" \
  380. +         or subject glob-matches "Monthly checkgroups posting"
  381. + #
  382. + ####################################
  383. + #
  384. + # General Testing and play archives
  385. + #
  386. + ####################################
  387. + #
  388. + $$alt.sources
  389. +     BASEDIR: /tmp/usenet/alt/sources
  390. +     TYPE: Only-Archive-Name
  391. +         INDEX: /tmp/usenet/alt/sources/index
  392. +         INDEX_FORMAT: "%B\t%S" 
  393. +     COMPRESS: /usr/ucb/compress -f
  394. + $$comp.archives
  395. +     BASEDIR: /tmp/usenet/archives
  396. +     TYPE: Comp-Archives
  397. +         INDEX: /tmp/usenet/archives/index
  398. +         INDEX_FORMAT: "%B %a %T" 
  399. +     COMPRESS: /usr/ucb/compress -f
  400. + $$imd.sources
  401. +     BASEDIR: /tmp/usenet/imd/sources
  402. +     TYPE: Archive-Name
  403. +         INDEX: /tmp/usenet/imd/sources/index
  404. +         INDEX_FORMAT: "%B %a %T" 
  405. +     COMPRESS: /usr/ucb/compress -f
  406. + $$comp.sources.misc        
  407. +     BASEDIR: /tmp/usenet/misc
  408. +     TYPE: Archive-Name
  409. +         INDEX: /tmp/usenet/misc/index
  410. +         INDEX_FORMAT: "%B %a %T" 
  411. +     COMPRESS: /usr/ucb/compress -f
  412. + #$$space.shuttle
  413. + #        BASEDIR: /pub/ftp/pub/archive/sci.space.shuttle
  414. + #        TYPE: Article-Number
  415. + #        LOG: /pub/ftp/pub/archive/sci.space.shuttle/log
  416. + #        INDEX: /pub/ftp/pub/archive/sci.space.shuttle/index
  417. + #        LOG_FORMAT: "%O %S"
  418. + #        MATCH: subject glob-matches "space news from * AW&ST*" \
  419. + #        or subject glob-matches "Shuttle Status for ??/??/?? (Forwarded)*" \
  420. + #        or ( subject glob-matches "* (Forwarded)*" and \
  421. + #                not subject glob-matches "Re:*" )
  422. + $$sci.space
  423. +         BASEDIR: /tmp/usenet/sci.space
  424. +         TYPE: Article-Number
  425. +         LOG: /tmp/usenet/sci.space/log
  426. +         INDEX: /tmp/usenet/sci.space/index
  427. +         LOG_FORMAT: "%O %S"
  428. +         MATCH: subject glob-matches "space news from * AW&ST*" \
  429. +         or subject glob-matches "Voyager Status for ??/??/?? (Forwarded)*" \
  430. +         or subject glob-matches "Voyager Update*" \
  431. +         or \
  432. +         subject glob-matches "NASA Headline News for ??/??/?? (Forwarded)*" \
  433. +         or subject glob-matches "News of the Week,*" \
  434. +         or subject glob-matches "Magellan Update - ??/??/??" \
  435. +         or subject glob-matches "Hubble Space Telescope Update - ??/??/??" \
  436. +         or ( subject glob-matches "* (Forwarded)*" and \
  437. +                 not subject glob-matches "Re:*" )
  438. X  
  439. Only in ../usenet: rkive.h
  440. Only in .: rkive.h.dst
  441. diff -cr ../usenet/suffix.c ./suffix.c
  442. *** ../usenet/suffix.c    Wed May  8 21:32:04 1991
  443. --- ./suffix.c    Thu May  9 02:05:42 1991
  444. ***************
  445. *** 9,15 ****
  446. X  */
  447. X  
  448. X  #if !defined(lint) && !defined(SABER)
  449. ! static char SID[] = "@(#)suffix.c    2.1 2/21/91";
  450. X  #endif
  451. X  
  452. X  #include <stdio.h>
  453. --- 9,15 ----
  454. X  */
  455. X  
  456. X  #if !defined(lint) && !defined(SABER)
  457. ! static char SID[] = "@(#)suffix.c    2.2 5/9/91";
  458. X  #endif
  459. X  
  460. X  #include <stdio.h>
  461. ***************
  462. *** 18,34 ****
  463. X  #include "suffix.h"
  464. X  
  465. X  int strcmp();
  466. X  
  467. X  extern char compress[];
  468. X  
  469. X  char *suffix(compression)
  470. X      char *compression;
  471. !  {
  472. X      struct compress_tab *ct;
  473. X  
  474. X      ct = &cprgs[0];
  475. X      while ((ct->com_name) != NULL) {
  476. !         if (strcmp(compression, ct->com_name) == 0) 
  477. X              return(ct->com_suffix);
  478. X          ct++;
  479. X      }
  480. --- 18,48 ----
  481. X  #include "suffix.h"
  482. X  
  483. X  int strcmp();
  484. + char *strcpy();
  485. X  
  486. X  extern char compress[];
  487. X  
  488. X  char *suffix(compression)
  489. X      char *compression;
  490. ! {
  491. !    char *strchr();
  492. !     char *ccp;
  493. !     char sccmd[BUFSIZ];
  494. X      struct compress_tab *ct;
  495. +     
  496. +     /*
  497. +     ** Need to remove any compression command
  498. +     ** options if they exist. (compress -f)
  499. +     */
  500. X  
  501. +     (void) strcpy(sccmd, compression);
  502. +     if ((ccp = strchr(sccmd,' ')) != NULL)
  503. +          *ccp = '\0';
  504. X      ct = &cprgs[0];
  505. X      while ((ct->com_name) != NULL) {
  506. !         if (strcmp(sccmd, ct->com_name) == 0) 
  507. X              return(ct->com_suffix);
  508. X          ct++;
  509. X      }
  510. ***************
  511. *** 67,74 ****
  512. X  char *filename;
  513. X  struct group_archive *ng;
  514. X  {
  515. X      char *comp_cmd;
  516. -     char *strcpy();
  517. X      char *strcat();
  518. X      char *basename();
  519. X  
  520. --- 81,88 ----
  521. X  char *filename;
  522. X  struct group_archive *ng;
  523. X  {
  524. +     char *oops;
  525. X      char *comp_cmd;
  526. X      char *strcat();
  527. X      char *basename();
  528. X  
  529. ***************
  530. *** 86,92 ****
  531. X  
  532. X      if (*(ng->compress)) {
  533. X          comp_cmd = basename(ng->compress);
  534. !         (void) strcat(compress_path, suffix(comp_cmd));
  535. X      }
  536. X      else if (*compress) {
  537. X          comp_cmd = basename(compress);
  538. --- 100,107 ----
  539. X  
  540. X      if (*(ng->compress)) {
  541. X          comp_cmd = basename(ng->compress);
  542. !         oops = suffix(comp_cmd);
  543. !         (void) strcat(compress_path, oops);
  544. X      }
  545. X      else if (*compress) {
  546. X          comp_cmd = basename(compress);
  547. Only in .: sys.cf
  548. diff -cr ../usenet/t.cf ./t.cf
  549. *** ../usenet/t.cf    Wed May  8 21:32:05 1991
  550. --- ./t.cf    Thu May  9 02:07:05 1991
  551. ***************
  552. *** 3,46 ****
  553. X  #
  554. X  ######################################################################
  555. X  SPOOLDIR=/usr/spool/news      
  556. ! PROBLEMS=/usenet/problems
  557. X  TYPE= Volume-Issue
  558. X  #TYPE= External-Command
  559. ! #ARCHIVE_CMD=update_netdocs
  560. X  PATCHES=Historical
  561. X  MAIL=kent
  562. X  OWNER=src
  563. X  GROUP=archive
  564. X  MODE=0444
  565. - #LOG=/usenet/archive.log
  566. - #LOG_FORMAT= "%B %a\t%T"
  567. - #INDEX= /usenet/index
  568. - #INDEX_FORMAT= "%O\t%a\t%T"
  569. X  COMPRESS=/usr/ucb/compress -f
  570. - #CHECKHASH=/usr/local/bin/checkhash -s
  571. - #NNTP=sparky
  572. - #MATCH="I have no idea what a global match might be but it was a freebee so..\
  573. - #    I put it in.. Creaping featurism ya know... :-) "
  574. X  
  575. X  ######################################################################
  576. ! $$comp.sources.test        
  577. !     BASEDIR: /usenet/test 
  578. !     TYPE: Volume-Issue
  579. X          PATCHES: Historical
  580. !         MAIL: kent@sparky.imd.sterling.com,kent@uunet.uu.net,rick,sparky!rick
  581. !         OWNER: src
  582. !         GROUP: archive
  583. !         MODE: 0644
  584. !         LOG: /usenet/admin/test.log
  585. !         LOG_FORMAT: "%B %a %T" 
  586. !         INDEX: /usenet/amiga/index
  587. !         INDEX_FORMAT: "%B %a %T" 
  588. !     COMPRESS: /usr/ucb/compress -f
  589. !     CHECKHASH: /usr/local/bin/checkhash -s
  590. !     ARCHIVE_CMD: /usr/local/bin/external_test
  591. !     ARCHIVED_LOG: /usenet/.admin/cst.archived
  592. !     PATCHLOG: /usenet/.admin/cst.patchlog
  593. !     NNTP: smokey
  594. !         MATCH: subject glob-matches "How to Get Information about Networks" \
  595. !         or subject glob-matches "USENET Software: History and Sources" \
  596. !         or subject glob-matches "A Primer on How to Work With the Usenet Community"
  597. --- 3,27 ----
  598. X  #
  599. X  ######################################################################
  600. X  SPOOLDIR=/usr/spool/news      
  601. ! PROBLEMS=/tmp/usenet/problems
  602. X  TYPE= Volume-Issue
  603. X  #TYPE= External-Command
  604. ! ARCHIVE_CMD=update_netdocs $P
  605. X  PATCHES=Historical
  606. X  MAIL=kent
  607. X  OWNER=src
  608. X  GROUP=archive
  609. X  MODE=0444
  610. X  COMPRESS=/usr/ucb/compress -f
  611. X  
  612. X  ######################################################################
  613. ! $$imd.sources
  614. !     BASEDIR: /tmp/usenet/imd.sources 
  615. X          PATCHES: Historical
  616. !     TYPE: External-Command
  617. !         ARCHIVE_CMD:  /testit $N $F 
  618. !         LOG: /tmp/usenet/imd.sources/test.log
  619. !         LOG_FORMAT: "%Z %a %T" 
  620. !         INDEX: /tmp/usenet/imd.sources/index
  621. !         INDEX_FORMAT: "%O - %Z - %a %T" 
  622. !     NNTP: sparky
  623. diff -cr ../usenet/update_netdocs ./update_netdocs
  624. *** ../usenet/update_netdocs    Wed May  8 21:32:05 1991
  625. --- ./update_netdocs    Thu May  9 02:08:20 1991
  626. ***************
  627. *** 1,6 ****
  628. X  #!/bin/sh
  629. X  #
  630. ! #  @(#)update_netdocs    2.1 2/21/91
  631. X  #
  632. X  #  Author: Kent Landfield
  633. X  #
  634. --- 1,6 ----
  635. X  #!/bin/sh
  636. X  #
  637. ! #  @(#)update_netdocs    2.2 5/9/91
  638. X  #
  639. X  #  Author: Kent Landfield
  640. X  #
  641. ***************
  642. *** 10,17 ****
  643. X  # called as:
  644. X  #    update_netdocs filename-to-archive modes owner group [users to notify..] 
  645. X  #
  646. X  
  647. ! set -x
  648. X  
  649. X  ARTICLE=/usr/local/bin/article
  650. X  
  651. --- 10,18 ----
  652. X  # called as:
  653. X  #    update_netdocs filename-to-archive modes owner group [users to notify..] 
  654. X  #
  655. + PATH=/bin:/etc:/usr/ucb:/usr/bin
  656. X  
  657. ! #set -x  # Exterminator flag
  658. X  
  659. X  ARTICLE=/usr/local/bin/article
  660. X  
  661. ***************
  662. *** 53,88 ****
  663. X      #
  664. X      "Access to UNIX-Related Standards")
  665. X          filename=$basedir/'unix.standards' 
  666. !         approved="jsq@cs.utexas.edu (Moderator, John S. Quarterman)"
  667. X          ;;
  668. X      "Calendar of UNIX-related Events")
  669. X          filename=$basedir/'unix.events' 
  670. !         approved="jsq@cs.utexas.edu (Moderator, John S. Quarterman)"
  671. X          ;;
  672. X      "Access to UNIX User Groups")
  673. X          filename=$basedir/'user.groups' 
  674. !         approved="jsq@cs.utexas.edu (Moderator, John S. Quarterman)"
  675. X          ;;
  676. X      "Access to UNIX-Related Publications")
  677. X          filename=$basedir/'unix.pubs' 
  678. !         approved="jsq@cs.utexas.edu (Moderator, John S. Quarterman)"
  679. X          ;;
  680. X      # 
  681. -     # comp.windows.x
  682. -     #
  683. -     "Frequently Asked Questions about X with Answers 1/3 [long monthly posting]")
  684. -         filename=$basedir/'X.questions.1' 
  685. -         from="xug@lta.com (X User's Group)"
  686. -         ;;
  687. -     "Frequently Asked Questions about X with Answers 2/3 [long monthly posting]")
  688. -         filename=$basedir/'X.questions.2' 
  689. -         from="xug@lta.com (X User's Group)"
  690. -         ;;
  691. -     "Frequently Asked Questions about X with Answers 3/3 [long monthly posting]")
  692. -         filename=$basedir/'X.questions.3' 
  693. -         from="xug@lta.com (X User's Group)"
  694. -         ;;
  695. -     # 
  696. X      # News.admin
  697. X      #
  698. X      "Checkgroups message (without INET groups)")
  699. --- 54,74 ----
  700. X      #
  701. X      "Access to UNIX-Related Standards")
  702. X          filename=$basedir/'unix.standards' 
  703. !         approved="sef@uunet.uu.net (Moderator, Sean Eric Fagan - comp.std.unix)"
  704. X          ;;
  705. X      "Calendar of UNIX-related Events")
  706. X          filename=$basedir/'unix.events' 
  707. !         approved="sef@uunet.uu.net (Moderator, Sean Eric Fagan - comp.std.unix)"
  708. X          ;;
  709. X      "Access to UNIX User Groups")
  710. X          filename=$basedir/'user.groups' 
  711. !         approved="sef@uunet.uu.net (Moderator, Sean Eric Fagan - comp.std.unix)"
  712. X          ;;
  713. X      "Access to UNIX-Related Publications")
  714. X          filename=$basedir/'unix.pubs' 
  715. !         approved="sef@uunet.uu.net (Moderator, Sean Eric Fagan - comp.std.unix)"
  716. X          ;;
  717. X      # 
  718. X      # News.admin
  719. X      #
  720. X      "Checkgroups message (without INET groups)")
  721. ***************
  722. *** 160,165 ****
  723. --- 146,231 ----
  724. X          filename=$basedir/'mail.lists' 
  725. X          approved="spaf@cs.purdue.EDU"
  726. X          ;;
  727. +     #
  728. +     #################################################
  729. +     # Frequently Asked Questions - various newsgroups
  730. +     #################################################
  731. +     # 
  732. +     # comp.windows.x
  733. +     #
  734. +     "Frequently Asked Questions about X with Answers 1/4 [long monthly posting]")
  735. +         filename=$basedir/'X.questions.1' 
  736. +         from="xug@lta.com (X User's Group)"
  737. +         ;;
  738. +     "Frequently Asked Questions about X with Answers 2/4 [long monthly posting]")
  739. +         filename=$basedir/'X.questions.2' 
  740. +         from="xug@lta.com (X User's Group)"
  741. +         ;;
  742. +     "Frequently Asked Questions about X with Answers 3/4 [long monthly posting]")
  743. +         filename=$basedir/'X.questions.3' 
  744. +         from="xug@lta.com (X User's Group)"
  745. +         ;;
  746. +     "Frequently Asked Questions about X with Answers 4/4 [long monthly posting]")
  747. +         filename=$basedir/'X.questions.4' 
  748. +         from="xug@lta.com (X User's Group)"
  749. +         ;;
  750. +     # 
  751. +     # comp.unix.questions
  752. +     #
  753. +     "Welcome to comp.unix.questions [Monthly posting]")
  754. +         filename=$basedir/'unix.questions' 
  755. +         from="sahayman@iuvax.cs.indiana.edu (Steve Hayman)"
  756. +         ;;
  757. +        "Frequently Asked Questions about Unix - with Answers [Monthly posting]")
  758. +         filename=$basedir/'unix.faq' 
  759. +         from="sahayman@iuvax.cs.indiana.edu (Steve Hayman)"
  760. +         ;;
  761. +     # 
  762. +     # comp.lang.perl
  763. +     #
  764. +        "Frequently Asked Questions about Perl - with Answers [Monthly posting]")
  765. +         filename=$basedir/'perl.faq' 
  766. +                 from="tchrist@convex.com (Tom Christiansen)"
  767. +         ;;
  768. +     # 
  769. +     # comp.compilers
  770. +     #
  771. +     "comp.compilers monthly message")
  772. +         filename=$basedir/'compilers.faq' 
  773. +         approved="compilers@iecc.cambridge.ma.us"
  774. +         ;;
  775. +     # 
  776. +     # comp.os.vms
  777. +     #
  778. +     "Monthly info posting: What is VMSnet?")
  779. +         filename=$basedir/'vmsnet.info' 
  780. +         approved="tp@mccall.com"
  781. +         ;;
  782. +     "Monthly info posting: VMSnet on Bitnet")
  783. +         filename=$basedir/'bitnet.vmsnet' 
  784. +         approved="tp@mccall.com"
  785. +         ;;
  786. +     "Monthly info posting: vmsnet.sources archive sites")
  787. +         filename=$basedir/'vmsnet.archives' 
  788. +         approved="tp@mccall.com"
  789. +         ;;
  790. +     "Info-VAX Monthly Posting, Part 1 of 3")
  791. +         filename=$basedir/'Info-VAX.1' 
  792. +         approved="tp@mccall.com"
  793. +         ;;
  794. +     "Info-VAX Monthly Posting, Part 2 of 3")
  795. +         filename=$basedir/'Info-VAX.2' 
  796. +         approved="tp@mccall.com"
  797. +         ;;
  798. +     "Info-VAX Monthly Posting, Part 3 of 3")
  799. +         filename=$basedir/'Info-VAX.3' 
  800. +         approved="tp@mccall.com"
  801. +         ;;
  802. +     "Monthly checkgroups posting")
  803. +         filename=$basedir/'vmsnet.checkgroups' 
  804. +         approved="tp@mccall.com"
  805. +         ;;
  806. +     
  807. X      *) echo "Specified filename error. please update $0"
  808. X          exit 1 ;;
  809. X  esac 
  810. diff -cr ../usenet/zfopen.c ./zfopen.c
  811. *** ../usenet/zfopen.c    Wed May  8 21:32:06 1991
  812. --- ./zfopen.c    Thu May  9 02:09:46 1991
  813. ***************
  814. *** 8,14 ****
  815. X  **
  816. X  */
  817. X  #if !defined(lint) && !defined(SABER)
  818. ! static char SID[] = "@(#)zfopen.c    2.2 2/23/91";
  819. X  #endif
  820. X  
  821. X  #include <sys/types.h>
  822. --- 8,14 ----
  823. X  **
  824. X  */
  825. X  #if !defined(lint) && !defined(SABER)
  826. ! static char SID[] = "@(#)zfopen.c    2.3 5/9/91";
  827. X  #endif
  828. X  
  829. X  #include <sys/types.h>
  830. ***************
  831. *** 18,24 ****
  832. X  
  833. X  extern FILE *errfp;
  834. X  
  835. ! static    char    cmdline[512] = "";
  836. X  
  837. X  FILE *zfopen(file,mode)       
  838. X  char *file, *mode;
  839. --- 18,24 ----
  840. X  
  841. X  extern FILE *errfp;
  842. X  
  843. ! static char cmdline[512] = "";
  844. X  
  845. X  FILE *zfopen(file,mode)       
  846. X  char *file, *mode;
  847. ***************
  848. *** 25,30 ****
  849. --- 25,31 ----
  850. X  {
  851. X      int strlen();
  852. X      int strcmp();
  853. +     char *strcat();
  854. X      FILE *fopen();
  855. X      FILE *popen();
  856. X  
  857. ***************
  858. *** 33,42 ****
  859. X      struct compress_tab *ct;
  860. X  
  861. X      /*
  862. !     ** need to compare the filename passed in to 
  863. !     ** the compression suffix table in order to
  864. !     ** determine if the file has a recognized,
  865. !     ** compression suffix attached.
  866. X      */
  867. X      
  868. X      cmdline[0] = '\0';
  869. --- 34,54 ----
  870. X      struct compress_tab *ct;
  871. X  
  872. X      /*
  873. !     ** First, need to compare the filename passed in to the
  874. !     ** compression suffix table in order to determine if the
  875. !     ** file has a recognized, compression suffix attached. 
  876. !     **
  877. !     ** If it does, execute the command specified in the table.
  878. !     ** 
  879. !     ** If no suffix found to be attached, try to open the file 
  880. !     ** name passed to this function. 
  881. !     ** 
  882. !     ** If that fails, brute force it to see if the file name 
  883. !     ** passed in did not contain the suffix but the file on
  884. !     ** disk the user is trying to open does. Do this by appending
  885. !     ** each compression suffix to the filename passed in and
  886. !     ** try to open the file. If the open does not fail, execute
  887. !     ** the command specified in the table.
  888. X      */
  889. X      
  890. X      cmdline[0] = '\0';
  891. ***************
  892. *** 53,71 ****
  893. X      }
  894. X  
  895. X      if (cmdline[0] != '\0') {
  896. X          if ((fp = popen(cmdline, "r")) == NULL) {
  897. X              (void) fprintf(errfp, "Can't execute command: %s\n", cmdline);
  898. X              exit(1);
  899. X          }
  900. !     } else if ((fp = fopen (file, mode)) == NULL) {
  901. !          (void) fprintf (errfp, "Can't open file %s\n", file);
  902. !          exit(1);
  903. X       }
  904. X       return (fp);
  905. X  }
  906. X  
  907. ! int        zfclose(fp)
  908. ! FILE    *fp;
  909. X  {
  910. X      int fclose();
  911. X      int pclose();
  912. --- 65,111 ----
  913. X      }
  914. X  
  915. X      if (cmdline[0] != '\0') {
  916. +         /*
  917. +         ** Found an attached suffix, execute the specified command.
  918. +         */
  919. X          if ((fp = popen(cmdline, "r")) == NULL) {
  920. X              (void) fprintf(errfp, "Can't execute command: %s\n", cmdline);
  921. X              exit(1);
  922. X          }
  923. !     }
  924. !     else if ((fp = fopen (file, mode)) == NULL) {
  925. !         /*
  926. !         **  OK, no suffix found to be attached, opening the file
  927. !         **  directly failed. Time to brute force it to see if a file
  928. !         **  name was passed in that did not contain the suffix but
  929. !         **  the file on disk that the user is trying to open does...
  930. !         */
  931. !         ss = file+strlen(file);
  932. !         ct = &cprgs[0];
  933. !         while ((ct->com_name) != NULL) {
  934. !             (void) strcat(file, ct->com_suffix);
  935. !             if ((fp = fopen (file, mode)) != NULL) {
  936. !                 *ss = '\0';
  937. !                 (void) sprintf(cmdline, "%s %s", ct->uncom_name, file);
  938. !                 if (cmdline[0] != '\0') {
  939. !                     if ((fp = popen(cmdline, "r")) == NULL) {
  940. !                         (void) fprintf(errfp, "Can't execute command: %s\n", 
  941. !                                        cmdline);
  942. !                         exit(1);
  943. !                     }
  944. !                 }
  945. !             }
  946. !             ct++;
  947. !             *ss = '\0';
  948. !         }
  949. !         (void) fprintf (errfp, "Can't open file %s\n", file);
  950. !         exit(1);
  951. X       }
  952. X       return (fp);
  953. X  }
  954. X  
  955. ! int   zfclose(fp)
  956. ! FILE  *fp;
  957. X  {
  958. X      int fclose();
  959. X      int pclose();
  960. SHAR_EOF
  961. echo 'File patch2.1 is complete' &&
  962. chmod 0664 patch2.1 ||
  963. echo 'restore of patch2.1 failed'
  964. Wc_c="`wc -c < 'patch2.1'`"
  965. test 91391 -eq "$Wc_c" ||
  966.     echo 'patch2.1: original size 91391, current size' "$Wc_c"
  967. rm -f _shar_wnt_.tmp
  968. fi
  969. rm -f _shar_seq_.tmp
  970. echo You have unpacked the last part
  971. exit 0
  972. exit 0 # Just in case...
  973. -- 
  974. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  975. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  976. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  977. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  978.