home *** CD-ROM | disk | FTP | other *** search
- From: howard@ericsson.se (Howard Gayle)
- Newsgroups: comp.sources.misc
- Subject: v18i007: libhoward - libhoward portability library, Patch01a/3
- Message-ID: <1991Apr10.040829.3868@sparky.IMD.Sterling.COM>
- Date: 10 Apr 91 04:08:29 GMT
- Approved: kent@sparky.imd.sterling.com
- X-Checksum-Snefru: 84f4e04e 9a7cf72b 118fea6b a97977ab
-
- Submitted-by: Howard Gayle <howard@ericsson.se>
- Posting-number: Volume 18, Issue 7
- Archive-name: libhoward/patch01a
- Patch-To: libhoward: Volume 8, Issue 80-87,96
-
- This is a patch in 3 parts to libhoward, which was posted in
- these articles:
- volume 8 issues 80-87 ( 1 Oct 1989)
- issue 96 (28 Oct 1989)
-
- libhoward is my C function library, collection of C include files,
- collection of TeX and LaTeX include files, and set of useful
- little shell files. I use it in essentially all my software.
- The C library includes macros and functions for portability,
- writing error messages, safely converting numbers to internal
- representations, safely reading lines of text, performing
- various common functions with full error checking, some string
- functions, etc. There are shell files for supporting my scheme
- for software sharing in a network of heterogeneous UNIX hosts.
- This is described in a LaTeX report.
-
- This patch fixes some problems in some of the shell files, and
- updates the documentation. There are no changes to any of the
- C functions. The 3 parts may be applied in any order.
- --
- Howard Gayle
- TN/ETX/TG/HL
- Ericsson Telecom AB
- S-126 25 Stockholm
- Sweden
- howard@ericsson.se
- uunet!ericsson.se!howard
- Phone: +46 8 719 5565
- FAX : +46 8 719 8439
-
-
- #! /bin/sh
- # This is a shell patch script from revision 1.7 to revision 2.3.
- # Remove anything before this line, then feed it into a shell, for
- # example by typing "sh file". This script was created by:
- # $Header: freezePch.b,v 1.2 89/09/25 07:01:13 howard Exp $
- #
- # The following files are to be removed. If you have a command
- # available to delete files so that they may later be undeleted,
- # you may wish to substitute that command for rm below. An
- # example of such a command is Jonathan I. Kamens's delete
- # command, posted to comp.sources.unix on 29 March 1989 as volume
- # 18, issues 73-78, archive name undel.
- rm -f FREEZE
- #
- # Here is the updated FREEZE file:
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then feed it
- # into a shell via "sh file" or similar. To overwrite existing files,
- # type "sh file -c".
- # The tool that generated this appeared in the comp.sources.unix newsgroup;
- # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
- # If this archive is complete, you will see the following message at the end:
- # "End of shell archive."
- # Contents: FREEZE
- # Wrapped by howard@hasse on Wed Apr 3 13:46:17 1991
- if test -f 'FREEZE' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'FREEZE'\"
- else
- echo shar: Extracting \"'FREEZE'\" \(5872 characters\)
- sed "s/^X//" >'FREEZE' <<'END_OF_FILE'
- X$Header: /usr/local/dist/free-dist/howard/2/work/RCS/FREEZE,v 2.3 91/04/03 13:38:06 howard Exp $
- X$Log: FREEZE,v $
- X# Revision 2.3 91/04/03 13:38:06 howard
- X# *** empty log message ***
- X#
- X# Revision 2.2 91/04/03 13:29:07 howard
- X# *** empty log message ***
- X#
- X# Revision 2.1 91/02/26 09:45:19 howard
- X# *** empty log message ***
- X#
- X# Revision 1.7 89/09/25 07:03:19 howard
- X# *** empty log message ***
- X#
- X# Revision 1.6 89/09/23 14:24:24 howard
- X# *** empty log message ***
- X#
- X# Revision 1.5 89/09/19 09:09:46 howard
- X# *** empty log message ***
- X#
- X# Revision 1.4 89/08/29 17:19:00 howard
- X# *** empty log message ***
- X#
- X# Revision 1.3 89/08/11 14:52:36 howard
- X# *** empty log message ***
- X#
- X========================================
- XFREEZE.c 1.1 1989-08-05 08:46:25
- XMakeCommon 1.4 1991-02-27 08:52:33
- XMakefile 1.25 1991-02-26 14:25:51
- XREADME 1.7 1991-04-03 13:19:03
- Xa2.3 1.3 1991-02-27 05:44:52
- Xa2.h 1.4 1989-06-22 15:11:58
- Xa2d.c 1.7 1989-08-09 18:13:20
- Xa2i.c 1.7 1989-08-10 13:02:15
- Xa2l.c 1.12 1989-08-11 13:07:15
- Xa2smp.c 1.11 1989-08-15 13:33:10
- Xa2u.c 1.6 1989-08-11 14:08:33
- Xa2ul.c 1.7 1989-08-11 14:17:25
- Xb.bib 1.3 1991-04-03 13:11:31
- Xcat-path.1 1.2 1991-02-27 05:44:20
- Xcat-path.b 1.1 1989-09-21 08:01:10
- Xcia.1 1.2 1991-02-27 05:44:26
- Xcia.b 1.3 1989-09-23 14:06:03
- Xcopy-self.1 1.3 1991-02-27 05:44:30
- Xcopy-self.b 1.5 1989-09-21 07:18:17
- Xfreeze.1 1.2 1991-02-27 05:44:34
- Xfreeze.b 1.9 1991-02-27 09:38:28
- Xfreeze0.b 1.7 1991-02-27 09:59:41
- XfreezePch.1 1.3 1991-02-27 05:44:38
- XfreezePch.b 1.2 1989-09-25 07:01:13
- XfreezePch0.b 1.1 1989-09-23 10:39:47
- Xgetlic.c 1.5 1989-08-09 09:46:01
- Xgetlin.3 1.8 1991-02-27 05:44:57
- Xgetlin.c 1.7 1989-08-09 09:46:03
- Xgetopt.c 1.1 1989-08-29 17:16:53
- Xgetpwf.3 1.3 1991-02-27 05:45:02
- Xgetpwf.c 1.2 1989-08-20 11:05:20
- Xgold-lt.tex 1.2 1989-08-28 19:02:50
- Xhetero.tex 1.4 1991-04-03 13:10:48
- Xlatin-lt.tex 1.3 1989-09-19 12:04:12
- XlnR.1 1.4 1991-02-28 06:17:57
- XlnR.b 1.5 1991-02-28 06:18:27
- XlnR0.b 1.6 1991-02-28 06:18:30
- Xma2d.c 1.6 1989-08-12 08:58:22
- Xma2i.c 1.6 1989-08-12 09:10:44
- Xma2l.c 1.3 1989-08-12 09:22:39
- Xma2u.c 1.4 1989-08-12 09:37:32
- Xma2ul.c 1.3 1989-08-12 09:56:17
- Xmalf.3 1.13 1991-02-28 07:34:41
- Xmalf.c 1.10 1989-08-21 17:50:36
- Xmalf.h 1.18 1989-08-20 10:45:05
- Xmalf0.c 1.11 1989-08-21 17:50:47
- Xmalf1.c 1.8 1989-08-21 17:50:50
- Xmcalloc.c 1.5 1989-08-13 10:19:24
- Xmcpstr.3 1.3 1991-02-27 05:45:12
- Xmcpstr.c 1.4 1989-08-13 15:27:43
- Xmemcmp.c 1.1 1989-08-15 18:17:12
- Xmfclose.c 1.3 1989-08-13 14:53:25
- Xmfcopy.3 1.2 1991-02-27 05:45:16
- Xmfcopy.c 1.4 1989-08-13 15:37:56
- Xmfflush.c 1.4 1989-08-13 14:59:43
- Xmfopen.c 1.5 1989-08-13 15:07:38
- Xmfseek.c 1.4 1989-08-13 15:18:44
- Xmk-cc-lims.b 1.7 1991-02-27 10:00:07
- Xmk-reg.b 1.4 1989-09-20 12:21:49
- Xmk-smp.c 1.5 1989-08-15 14:25:55
- XmkAr.b 1.1 1989-09-22 13:37:21
- XmkCIncl.b 1.4 1991-02-27 10:00:10
- XmkDistI.b 1.5 1991-02-27 10:00:14
- XmkDistO.b 1.4 1991-02-27 10:00:19
- XmkFreeze.b 1.4 1991-02-27 09:30:37
- XmkInstF.b 1.4 1991-02-27 09:43:53
- XmkInstX.b 1.4 1991-02-27 10:00:21
- XmkLaTeXPS.b 1.3 1989-09-20 12:22:10
- XmkLibIncl.b 1.4 1991-02-27 10:00:24
- XmkLibcLims.b 1.9 1991-02-27 10:00:28
- XmkManPS.b 1.4 1991-02-27 10:00:33
- XmkSpellLT.b 1.2 1989-09-20 12:22:20
- XmkUncmprs.b 1.4 1991-02-27 10:00:38
- Xmopenp.3 1.2 1991-02-27 05:45:20
- Xmopenp.c 1.6 1989-09-21 07:43:04
- Xmra2d.c 1.5 1989-08-12 10:43:12
- Xmra2i.c 1.5 1989-08-13 07:35:40
- Xmra2l.c 1.2 1989-08-13 08:05:51
- Xmra2u.c 1.4 1989-08-13 07:46:02
- Xmra2ul.c 1.2 1989-08-13 08:20:50
- Xmsgfn.3 1.3 1991-02-27 05:45:24
- Xmsgfn.c 1.2 1989-08-19 10:19:10
- Xnew-1.b 1.2 1989-09-21 12:39:49
- Xnew-3.b 1.1 1989-09-21 12:44:29
- Xnew-5.b 1.2 1991-02-27 09:22:10
- Xnew-8.b 1.1 1991-02-27 09:22:38
- Xnew-Make.b 1.5 1991-03-05 14:20:59
- Xnew-MakeC.b 1.1 1989-09-21 12:48:58
- Xnew-b.b 1.2 1989-09-23 13:49:12
- Xnew-bib.b 1.1 1989-09-21 11:03:58
- Xnew-c.b 1.1 1989-09-21 18:32:17
- Xnew-el.b 1.1 1989-09-21 18:19:01
- Xnew-h.b 1.1 1989-09-21 18:25:40
- Xnew-uMake.b 1.2 1991-02-27 08:13:54
- Xnew.1 1.4 1991-02-27 09:01:09
- Xnew.b 1.2 1991-02-27 08:35:28
- Xport.h 1.31 1991-02-27 07:45:35
- Xprefix.3 1.5 1991-02-27 05:45:30
- Xprefix.c 1.5 1989-08-13 16:55:44
- Xprefxi.c 1.1 1989-08-19 10:31:17
- Xputspn.3 1.10 1991-02-27 05:45:34
- Xputspn.c 1.10 1989-08-13 16:31:09
- Xqrndu.3 1.2 1991-02-27 05:45:38
- Xqrndu.c 1.7 1989-08-14 10:41:31
- Xsmp.3 1.4 1991-02-27 05:45:42
- Xsmp.h 1.2 1989-08-15 14:31:10
- Xsmp2l.c 1.9 1989-08-14 18:20:04
- Xsmp2u.c 1.2 1989-08-14 18:29:32
- Xsmp2ul.c 1.7 1989-08-15 11:14:04
- Xsmpdig.c 1.6 1989-08-14 17:52:43
- Xsmpdtl.c 1.6 1989-08-14 17:37:31
- Xstrend.3 1.7 1991-02-27 05:45:47
- Xstrend.c 1.6 1989-08-14 09:27:31
- Xstrspn.c 1.1 1989-08-29 08:34:07
- XuMakefile 1.13 1991-02-27 09:17:28
- Xunix-lt.tex 1.2 1991-04-03 13:02:12
- Xusage.3 1.6 1991-02-27 05:45:51
- Xusage.c 1.6 1989-08-14 09:18:44
- Xusage.h 1.1 1988-08-21 09:02:44
- Xuserfn.3 1.2 1991-02-27 05:45:55
- Xuserfn.c 1.2 1989-08-20 11:30:07
- Xversion.h 1.3 1989-03-17 15:33:37
- Xyear.h 1.2 1989-08-14 09:54:12
- Xyrwk.3 1.3 1991-02-27 05:43:25
- Xyrwk.c 1.5 1989-08-14 10:01:11
- END_OF_FILE
- if test 5872 -ne `wc -c <'FREEZE'`; then
- echo shar: \"'FREEZE'\" unpacked with wrong size!
- fi
- # end of 'FREEZE'
- fi
- echo shar: End of shell archive.
- #
- # The following files are all new:
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then feed it
- # into a shell via "sh file" or similar. To overwrite existing files,
- # type "sh file -c".
- # The tool that generated this appeared in the comp.sources.unix newsgroup;
- # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
- # If this archive is complete, you will see the following message at the end:
- # "End of shell archive."
- # Contents: new-5.b new-8.b
- # Wrapped by howard@hasse on Wed Apr 3 13:46:29 1991
- if test -f 'new-5.b' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'new-5.b'\"
- else
- echo shar: Extracting \"'new-5.b'\" \(1629 characters\)
- sed "s/^X//" >'new-5.b' <<'END_OF_FILE'
- X
- X# new-5.b - create a new section 5 manual entry source file from a prototype
- X#
- 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 $
- X#
- X# Copyright 1991 Howard Lee Gayle
- X# This file is written in the ISO 8859/1 character set.
- X#
- X# This program is free software; you can redistribute it and/or modify
- X# it under the terms of the GNU General Public License version 1,
- X# as published by the Free Software Foundation.
- X#
- X# This program is distributed in the hope that it will be useful,
- X# but WITHOUT ANY WARRANTY; without even the implied warranty of
- X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- X# GNU General Public License for more details.
- X#
- X# You should have received a copy of the GNU General Public License
- X# along with this program; if not, write to the Free Software
- X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- X#
- X# Shell variables:
- X# u - usage string
- X# a - file name prefix in all caps
- X# d - '$'
- X# f - steps through files to create
- X# p - file name prefix
- X
- XCMDNAME=new-5
- Xexport CMDNAME
- Xu="Usage: $CMDNAME file..."
- Xif [ $# -eq 0 ]
- Xthen
- X echo "$u" 1>&2
- X exit 1
- Xfi
- Xd='$'
- Xfor f
- Xdo
- X p=`basename "$f" .5`
- X a=`echo "$p" | tr '[a-z]' '[A-Z]'`
- X cat << EOF > "$f"
- X.\" ${d}Header${d}
- X.TH $a 5 "${d}Revision${d}"
- X.SH NAME
- X$p \-
- X.nf
- X#include <$p.h>
- X.fi
- XEOF
- X if [ "$NEWTEXTPATH" ]
- X then
- X cat-path "$NEWTEXTPATH" new-5.cprt >> "$f"
- X fi
- X cat << EOF >> "$f"
- X.SH AVAILABILITY
- X.SH DESCRIPTION
- X.SH FILES
- X.DT
- X.nf
- X.fi
- X.SH "SEE ALSO"
- X.SH BUGS
- XEOF
- X if [ "$NEWTEXTPATH" ]
- X then
- X cat-path "$NEWTEXTPATH" new-5.txt >> "$f"
- X fi
- Xdone
- END_OF_FILE
- if test 1629 -ne `wc -c <'new-5.b'`; then
- echo shar: \"'new-5.b'\" unpacked with wrong size!
- fi
- # end of 'new-5.b'
- fi
- if test -f 'new-8.b' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'new-8.b'\"
- else
- echo shar: Extracting \"'new-8.b'\" \(1701 characters\)
- sed "s/^X//" >'new-8.b' <<'END_OF_FILE'
- X
- X# new-8.b - create a new section 8 manual entry source file from a prototype
- X#
- 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 $
- X#
- X# Copyright 1991 Howard Lee Gayle
- X# This file is written in the ISO 8859/1 character set.
- X#
- X# This program is free software; you can redistribute it and/or modify
- X# it under the terms of the GNU General Public License version 1,
- X# as published by the Free Software Foundation.
- X#
- X# This program is distributed in the hope that it will be useful,
- X# but WITHOUT ANY WARRANTY; without even the implied warranty of
- X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- X# GNU General Public License for more details.
- X#
- X# You should have received a copy of the GNU General Public License
- X# along with this program; if not, write to the Free Software
- X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- X#
- X# Shell variables:
- X# u - usage string
- X# a - file name prefix in all caps
- X# d - '$'
- X# f - steps through files to create
- X# p - file name prefix
- X
- XCMDNAME=new-8
- Xexport CMDNAME
- Xu="Usage: $CMDNAME file..."
- Xif [ $# -eq 0 ]
- Xthen
- X echo "$u" 1>&2
- X exit 1
- Xfi
- Xd='$'
- Xfor f
- Xdo
- X p=`basename "$f" .8`
- X a=`echo "$p" | tr '[a-z]' '[A-Z]'`
- X cat << EOF > "$f"
- X.\" ${d}Header${d}
- X.TH $a 8 "${d}Revision${d}"
- X.SH NAME
- X$p \-
- X.SH SYNOPSIS
- X.B $p
- X.RB [ " \-o " ]
- X.I filename \&.\|.\|.
- XEOF
- X if [ "$NEWTEXTPATH" ]
- X then
- X cat-path "$NEWTEXTPATH" new-8.cprt >> "$f"
- X fi
- X cat << EOF >> "$f"
- X.SH DESCRIPTION
- X.I $p
- X
- X.SH OPTIONS
- X.SH EXAMPLE
- X.nf
- X.fi
- X.SH FILES
- X.DT
- X.nf
- X.fi
- X.SH "SEE ALSO"
- X.SH DIAGNOSTICS
- X.SH BUGS
- XEOF
- X if [ "$NEWTEXTPATH" ]
- X then
- X cat-path "$NEWTEXTPATH" new-8.txt >> "$f"
- X fi
- Xdone
- END_OF_FILE
- if test 1701 -ne `wc -c <'new-8.b'`; then
- echo shar: \"'new-8.b'\" unpacked with wrong size!
- fi
- # end of 'new-8.b'
- fi
- echo shar: End of shell archive.
-
- exit 0 # Just in case...
- --
- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM
- Sterling Software, IMD UUCP: uunet!sparky!kent
- Phone: (402) 291-8300 FAX: (402) 291-4362
- Please send comp.sources.misc-related mail to kent@uunet.uu.net.
-