home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume18 / libhoward / patch01a next >
Internet Message Format  |  1991-04-10  |  14KB

  1. From: howard@ericsson.se (Howard Gayle)
  2. Newsgroups: comp.sources.misc
  3. Subject: v18i007:  libhoward - libhoward portability library, Patch01a/3
  4. Message-ID: <1991Apr10.040829.3868@sparky.IMD.Sterling.COM>
  5. Date: 10 Apr 91 04:08:29 GMT
  6. Approved: kent@sparky.imd.sterling.com
  7. X-Checksum-Snefru: 84f4e04e 9a7cf72b 118fea6b a97977ab
  8.  
  9. Submitted-by: Howard Gayle <howard@ericsson.se>
  10. Posting-number: Volume 18, Issue 7
  11. Archive-name: libhoward/patch01a
  12. Patch-To: libhoward: Volume 8, Issue 80-87,96
  13.  
  14. This is a patch in 3 parts to libhoward, which was posted in
  15. these articles:
  16.    volume  8 issues 80-87        ( 1 Oct 1989)
  17.              issue  96           (28 Oct 1989)
  18.  
  19. libhoward is my C function library, collection of C include files,
  20. collection of TeX and LaTeX include files, and set of useful
  21. little shell files.  I use it in essentially all my software.
  22. The C library includes macros and functions for portability,
  23. writing error messages, safely converting numbers to internal
  24. representations, safely reading lines of text, performing
  25. various common functions with full error checking, some string
  26. functions, etc.  There are shell files for supporting my scheme
  27. for software sharing in a network of heterogeneous UNIX hosts.
  28. This is described in a LaTeX report.
  29.  
  30. This patch fixes some problems in some of the shell files, and
  31. updates the documentation.  There are no changes to any of the
  32. C functions.  The 3 parts may be applied in any order.
  33. --
  34. Howard Gayle
  35. TN/ETX/TG/HL
  36. Ericsson Telecom AB
  37. S-126 25 Stockholm
  38. Sweden
  39. howard@ericsson.se
  40. uunet!ericsson.se!howard
  41. Phone: +46 8 719 5565
  42. FAX  : +46 8 719 8439
  43.  
  44.  
  45. #! /bin/sh
  46. # This is a shell patch script from revision 1.7 to revision 2.3.
  47. # Remove anything before this line, then feed it into a shell, for
  48. # example by typing "sh file".  This script was created by:
  49. # $Header: freezePch.b,v 1.2 89/09/25 07:01:13 howard Exp $
  50. #
  51. # The following files are to be removed.  If you have a command
  52. # available to delete files so that they may later be undeleted,
  53. # you may wish to substitute that command for rm below.  An
  54. # example of such a command is Jonathan I. Kamens's delete
  55. # command, posted to comp.sources.unix on 29 March 1989 as volume
  56. # 18, issues 73-78, archive name undel.
  57. rm -f FREEZE
  58. #
  59. # Here is the updated FREEZE file:
  60. #! /bin/sh
  61. # This is a shell archive.  Remove anything before this line, then feed it
  62. # into a shell via "sh file" or similar.  To overwrite existing files,
  63. # type "sh file -c".
  64. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  65. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  66. # If this archive is complete, you will see the following message at the end:
  67. #        "End of shell archive."
  68. # Contents:  FREEZE
  69. # Wrapped by howard@hasse on Wed Apr  3 13:46:17 1991
  70. if test -f 'FREEZE' -a "${1}" != "-c" ; then 
  71.   echo shar: Will not clobber existing file \"'FREEZE'\"
  72. else
  73. echo shar: Extracting \"'FREEZE'\" \(5872 characters\)
  74. sed "s/^X//" >'FREEZE' <<'END_OF_FILE'
  75. X$Header: /usr/local/dist/free-dist/howard/2/work/RCS/FREEZE,v 2.3 91/04/03 13:38:06 howard Exp $
  76. X$Log:    FREEZE,v $
  77. X# Revision 2.3  91/04/03  13:38:06  howard
  78. X# *** empty log message ***
  79. X# 
  80. X# Revision 2.2  91/04/03  13:29:07  howard
  81. X# *** empty log message ***
  82. X# 
  83. X# Revision 2.1  91/02/26  09:45:19  howard
  84. X# *** empty log message ***
  85. X# 
  86. X# Revision 1.7  89/09/25  07:03:19  howard
  87. X# *** empty log message ***
  88. X# 
  89. X# Revision 1.6  89/09/23  14:24:24  howard
  90. X# *** empty log message ***
  91. X# 
  92. X# Revision 1.5  89/09/19  09:09:46  howard
  93. X# *** empty log message ***
  94. X# 
  95. X# Revision 1.4  89/08/29  17:19:00  howard
  96. X# *** empty log message ***
  97. X# 
  98. X# Revision 1.3  89/08/11  14:52:36  howard
  99. X# *** empty log message ***
  100. X# 
  101. X========================================
  102. XFREEZE.c     1.1     1989-08-05 08:46:25
  103. XMakeCommon   1.4     1991-02-27 08:52:33
  104. XMakefile     1.25    1991-02-26 14:25:51
  105. XREADME       1.7     1991-04-03 13:19:03
  106. Xa2.3         1.3     1991-02-27 05:44:52
  107. Xa2.h         1.4     1989-06-22 15:11:58
  108. Xa2d.c        1.7     1989-08-09 18:13:20
  109. Xa2i.c        1.7     1989-08-10 13:02:15
  110. Xa2l.c        1.12    1989-08-11 13:07:15
  111. Xa2smp.c      1.11    1989-08-15 13:33:10
  112. Xa2u.c        1.6     1989-08-11 14:08:33
  113. Xa2ul.c       1.7     1989-08-11 14:17:25
  114. Xb.bib        1.3     1991-04-03 13:11:31
  115. Xcat-path.1   1.2     1991-02-27 05:44:20
  116. Xcat-path.b   1.1     1989-09-21 08:01:10
  117. Xcia.1        1.2     1991-02-27 05:44:26
  118. Xcia.b        1.3     1989-09-23 14:06:03
  119. Xcopy-self.1  1.3     1991-02-27 05:44:30
  120. Xcopy-self.b  1.5     1989-09-21 07:18:17
  121. Xfreeze.1     1.2     1991-02-27 05:44:34
  122. Xfreeze.b     1.9     1991-02-27 09:38:28
  123. Xfreeze0.b    1.7     1991-02-27 09:59:41
  124. XfreezePch.1  1.3     1991-02-27 05:44:38
  125. XfreezePch.b  1.2     1989-09-25 07:01:13
  126. XfreezePch0.b 1.1     1989-09-23 10:39:47
  127. Xgetlic.c     1.5     1989-08-09 09:46:01
  128. Xgetlin.3     1.8     1991-02-27 05:44:57
  129. Xgetlin.c     1.7     1989-08-09 09:46:03
  130. Xgetopt.c     1.1     1989-08-29 17:16:53
  131. Xgetpwf.3     1.3     1991-02-27 05:45:02
  132. Xgetpwf.c     1.2     1989-08-20 11:05:20
  133. Xgold-lt.tex  1.2     1989-08-28 19:02:50
  134. Xhetero.tex   1.4     1991-04-03 13:10:48
  135. Xlatin-lt.tex 1.3     1989-09-19 12:04:12
  136. XlnR.1        1.4     1991-02-28 06:17:57
  137. XlnR.b        1.5     1991-02-28 06:18:27
  138. XlnR0.b       1.6     1991-02-28 06:18:30
  139. Xma2d.c       1.6     1989-08-12 08:58:22
  140. Xma2i.c       1.6     1989-08-12 09:10:44
  141. Xma2l.c       1.3     1989-08-12 09:22:39
  142. Xma2u.c       1.4     1989-08-12 09:37:32
  143. Xma2ul.c      1.3     1989-08-12 09:56:17
  144. Xmalf.3       1.13    1991-02-28 07:34:41
  145. Xmalf.c       1.10    1989-08-21 17:50:36
  146. Xmalf.h       1.18    1989-08-20 10:45:05
  147. Xmalf0.c      1.11    1989-08-21 17:50:47
  148. Xmalf1.c      1.8     1989-08-21 17:50:50
  149. Xmcalloc.c    1.5     1989-08-13 10:19:24
  150. Xmcpstr.3     1.3     1991-02-27 05:45:12
  151. Xmcpstr.c     1.4     1989-08-13 15:27:43
  152. Xmemcmp.c     1.1     1989-08-15 18:17:12
  153. Xmfclose.c    1.3     1989-08-13 14:53:25
  154. Xmfcopy.3     1.2     1991-02-27 05:45:16
  155. Xmfcopy.c     1.4     1989-08-13 15:37:56
  156. Xmfflush.c    1.4     1989-08-13 14:59:43
  157. Xmfopen.c     1.5     1989-08-13 15:07:38
  158. Xmfseek.c     1.4     1989-08-13 15:18:44
  159. Xmk-cc-lims.b 1.7     1991-02-27 10:00:07
  160. Xmk-reg.b     1.4     1989-09-20 12:21:49
  161. Xmk-smp.c     1.5     1989-08-15 14:25:55
  162. XmkAr.b       1.1     1989-09-22 13:37:21
  163. XmkCIncl.b    1.4     1991-02-27 10:00:10
  164. XmkDistI.b    1.5     1991-02-27 10:00:14
  165. XmkDistO.b    1.4     1991-02-27 10:00:19
  166. XmkFreeze.b   1.4     1991-02-27 09:30:37
  167. XmkInstF.b    1.4     1991-02-27 09:43:53
  168. XmkInstX.b    1.4     1991-02-27 10:00:21
  169. XmkLaTeXPS.b  1.3     1989-09-20 12:22:10
  170. XmkLibIncl.b  1.4     1991-02-27 10:00:24
  171. XmkLibcLims.b 1.9     1991-02-27 10:00:28
  172. XmkManPS.b    1.4     1991-02-27 10:00:33
  173. XmkSpellLT.b  1.2     1989-09-20 12:22:20
  174. XmkUncmprs.b  1.4     1991-02-27 10:00:38
  175. Xmopenp.3     1.2     1991-02-27 05:45:20
  176. Xmopenp.c     1.6     1989-09-21 07:43:04
  177. Xmra2d.c      1.5     1989-08-12 10:43:12
  178. Xmra2i.c      1.5     1989-08-13 07:35:40
  179. Xmra2l.c      1.2     1989-08-13 08:05:51
  180. Xmra2u.c      1.4     1989-08-13 07:46:02
  181. Xmra2ul.c     1.2     1989-08-13 08:20:50
  182. Xmsgfn.3      1.3     1991-02-27 05:45:24
  183. Xmsgfn.c      1.2     1989-08-19 10:19:10
  184. Xnew-1.b      1.2     1989-09-21 12:39:49
  185. Xnew-3.b      1.1     1989-09-21 12:44:29
  186. Xnew-5.b      1.2     1991-02-27 09:22:10
  187. Xnew-8.b      1.1     1991-02-27 09:22:38
  188. Xnew-Make.b   1.5     1991-03-05 14:20:59
  189. Xnew-MakeC.b  1.1     1989-09-21 12:48:58
  190. Xnew-b.b      1.2     1989-09-23 13:49:12
  191. Xnew-bib.b    1.1     1989-09-21 11:03:58
  192. Xnew-c.b      1.1     1989-09-21 18:32:17
  193. Xnew-el.b     1.1     1989-09-21 18:19:01
  194. Xnew-h.b      1.1     1989-09-21 18:25:40
  195. Xnew-uMake.b  1.2     1991-02-27 08:13:54
  196. Xnew.1        1.4     1991-02-27 09:01:09
  197. Xnew.b        1.2     1991-02-27 08:35:28
  198. Xport.h       1.31    1991-02-27 07:45:35
  199. Xprefix.3     1.5     1991-02-27 05:45:30
  200. Xprefix.c     1.5     1989-08-13 16:55:44
  201. Xprefxi.c     1.1     1989-08-19 10:31:17
  202. Xputspn.3     1.10    1991-02-27 05:45:34
  203. Xputspn.c     1.10    1989-08-13 16:31:09
  204. Xqrndu.3      1.2     1991-02-27 05:45:38
  205. Xqrndu.c      1.7     1989-08-14 10:41:31
  206. Xsmp.3        1.4     1991-02-27 05:45:42
  207. Xsmp.h        1.2     1989-08-15 14:31:10
  208. Xsmp2l.c      1.9     1989-08-14 18:20:04
  209. Xsmp2u.c      1.2     1989-08-14 18:29:32
  210. Xsmp2ul.c     1.7     1989-08-15 11:14:04
  211. Xsmpdig.c     1.6     1989-08-14 17:52:43
  212. Xsmpdtl.c     1.6     1989-08-14 17:37:31
  213. Xstrend.3     1.7     1991-02-27 05:45:47
  214. Xstrend.c     1.6     1989-08-14 09:27:31
  215. Xstrspn.c     1.1     1989-08-29 08:34:07
  216. XuMakefile    1.13    1991-02-27 09:17:28
  217. Xunix-lt.tex  1.2     1991-04-03 13:02:12
  218. Xusage.3      1.6     1991-02-27 05:45:51
  219. Xusage.c      1.6     1989-08-14 09:18:44
  220. Xusage.h      1.1     1988-08-21 09:02:44
  221. Xuserfn.3     1.2     1991-02-27 05:45:55
  222. Xuserfn.c     1.2     1989-08-20 11:30:07
  223. Xversion.h    1.3     1989-03-17 15:33:37
  224. Xyear.h       1.2     1989-08-14 09:54:12
  225. Xyrwk.3       1.3     1991-02-27 05:43:25
  226. Xyrwk.c       1.5     1989-08-14 10:01:11
  227. END_OF_FILE
  228. if test 5872 -ne `wc -c <'FREEZE'`; then
  229.     echo shar: \"'FREEZE'\" unpacked with wrong size!
  230. fi
  231. # end of 'FREEZE'
  232. fi
  233. echo shar: End of shell archive.
  234. #
  235. # The following files are all new:
  236. #! /bin/sh
  237. # This is a shell archive.  Remove anything before this line, then feed it
  238. # into a shell via "sh file" or similar.  To overwrite existing files,
  239. # type "sh file -c".
  240. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  241. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  242. # If this archive is complete, you will see the following message at the end:
  243. #        "End of shell archive."
  244. # Contents:  new-5.b new-8.b
  245. # Wrapped by howard@hasse on Wed Apr  3 13:46:29 1991
  246. if test -f 'new-5.b' -a "${1}" != "-c" ; then 
  247.   echo shar: Will not clobber existing file \"'new-5.b'\"
  248. else
  249. echo shar: Extracting \"'new-5.b'\" \(1629 characters\)
  250. sed "s/^X//" >'new-5.b' <<'END_OF_FILE'
  251. X  
  252. X# new-5.b - create a new section 5 manual entry source file from a prototype
  253. X#
  254. X# $Header: /usr/local/dist/free-dist/howard/2/work/RCS/new-5.b,v 1.2 91/02/27 09:22:10 howard Exp $
  255. X#
  256. X# Copyright 1991 Howard Lee Gayle
  257. X# This file is written in the ISO 8859/1 character set.
  258. X# 
  259. X# This program is free software; you can redistribute it and/or modify
  260. X# it under the terms of the GNU General Public License version 1,
  261. X# as published by the Free Software Foundation.
  262. X# 
  263. X# This program is distributed in the hope that it will be useful,
  264. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  265. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  266. X# GNU General Public License for more details.
  267. X# 
  268. X# You should have received a copy of the GNU General Public License
  269. X# along with this program; if not, write to the Free Software
  270. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  271. X# 
  272. X# Shell variables:
  273. X# u - usage string
  274. X# a - file name prefix in all caps
  275. X# d - '$'
  276. X# f - steps through files to create
  277. X# p - file name prefix
  278. X
  279. XCMDNAME=new-5
  280. Xexport CMDNAME
  281. Xu="Usage: $CMDNAME file..."
  282. Xif [ $# -eq 0 ]
  283. Xthen
  284. X   echo "$u" 1>&2
  285. X   exit 1
  286. Xfi
  287. Xd='$'
  288. Xfor f
  289. Xdo
  290. X   p=`basename "$f" .5`
  291. X   a=`echo "$p" | tr '[a-z]' '[A-Z]'`
  292. X   cat << EOF > "$f"
  293. X.\" ${d}Header${d}
  294. X.TH $a 5 "${d}Revision${d}"
  295. X.SH NAME
  296. X$p \- 
  297. X.nf
  298. X#include <$p.h>
  299. X.fi
  300. XEOF
  301. X   if [ "$NEWTEXTPATH" ]
  302. X   then
  303. X      cat-path "$NEWTEXTPATH" new-5.cprt >> "$f"
  304. X   fi
  305. X   cat << EOF >> "$f"
  306. X.SH AVAILABILITY
  307. X.SH DESCRIPTION
  308. X.SH FILES
  309. X.DT
  310. X.nf
  311. X.fi
  312. X.SH "SEE ALSO"
  313. X.SH BUGS
  314. XEOF
  315. X   if [ "$NEWTEXTPATH" ]
  316. X   then
  317. X      cat-path "$NEWTEXTPATH" new-5.txt >> "$f"
  318. X   fi
  319. Xdone
  320. END_OF_FILE
  321. if test 1629 -ne `wc -c <'new-5.b'`; then
  322.     echo shar: \"'new-5.b'\" unpacked with wrong size!
  323. fi
  324. # end of 'new-5.b'
  325. fi
  326. if test -f 'new-8.b' -a "${1}" != "-c" ; then 
  327.   echo shar: Will not clobber existing file \"'new-8.b'\"
  328. else
  329. echo shar: Extracting \"'new-8.b'\" \(1701 characters\)
  330. sed "s/^X//" >'new-8.b' <<'END_OF_FILE'
  331. X  
  332. X# new-8.b - create a new section 8 manual entry source file from a prototype
  333. X#
  334. X# $Header: /usr/local/dist/free-dist/howard/2/work/RCS/new-8.b,v 1.1 91/02/27 09:22:38 howard Exp $
  335. X#
  336. X# Copyright 1991 Howard Lee Gayle
  337. X# This file is written in the ISO 8859/1 character set.
  338. X# 
  339. X# This program is free software; you can redistribute it and/or modify
  340. X# it under the terms of the GNU General Public License version 1,
  341. X# as published by the Free Software Foundation.
  342. X# 
  343. X# This program is distributed in the hope that it will be useful,
  344. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  345. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  346. X# GNU General Public License for more details.
  347. X# 
  348. X# You should have received a copy of the GNU General Public License
  349. X# along with this program; if not, write to the Free Software
  350. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  351. X# 
  352. X# Shell variables:
  353. X# u - usage string
  354. X# a - file name prefix in all caps
  355. X# d - '$'
  356. X# f - steps through files to create
  357. X# p - file name prefix
  358. X
  359. XCMDNAME=new-8
  360. Xexport CMDNAME
  361. Xu="Usage: $CMDNAME file..."
  362. Xif [ $# -eq 0 ]
  363. Xthen
  364. X   echo "$u" 1>&2
  365. X   exit 1
  366. Xfi
  367. Xd='$'
  368. Xfor f
  369. Xdo
  370. X   p=`basename "$f" .8`
  371. X   a=`echo "$p" | tr '[a-z]' '[A-Z]'`
  372. X   cat << EOF > "$f"
  373. X.\" ${d}Header${d}
  374. X.TH $a 8 "${d}Revision${d}"
  375. X.SH NAME
  376. X$p \- 
  377. X.SH SYNOPSIS
  378. X.B $p
  379. X.RB [ " \-o " ] 
  380. X.I filename \&.\|.\|.
  381. XEOF
  382. X   if [ "$NEWTEXTPATH" ]
  383. X   then
  384. X      cat-path "$NEWTEXTPATH" new-8.cprt >> "$f"
  385. X   fi
  386. X   cat << EOF >> "$f"
  387. X.SH DESCRIPTION
  388. X.I $p
  389. X
  390. X.SH OPTIONS
  391. X.SH EXAMPLE
  392. X.nf
  393. X.fi
  394. X.SH FILES
  395. X.DT
  396. X.nf
  397. X.fi
  398. X.SH "SEE ALSO"
  399. X.SH DIAGNOSTICS
  400. X.SH BUGS
  401. XEOF
  402. X   if [ "$NEWTEXTPATH" ]
  403. X   then
  404. X      cat-path "$NEWTEXTPATH" new-8.txt >> "$f"
  405. X   fi
  406. Xdone
  407. END_OF_FILE
  408. if test 1701 -ne `wc -c <'new-8.b'`; then
  409.     echo shar: \"'new-8.b'\" unpacked with wrong size!
  410. fi
  411. # end of 'new-8.b'
  412. fi
  413. echo shar: End of shell archive.
  414.  
  415. exit 0 # Just in case...
  416. -- 
  417. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  418. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  419. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  420. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  421.