home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume42
/
dist-3.0
/
patch24
< prev
next >
Wrap
Internet Message Format
|
1994-05-06
|
46KB
From: Raphael Manfredi <ram@acri.fr>
Newsgroups: comp.sources.misc
Subject: v42i075: dist-3.0 - Configure script generator and related tools, Patch24
Date: 6 May 1994 14:15:25 -0500
Organization: Advanced Computer Research Institute, Lyon, France
Sender: kent@sparky.sterling.com
Approved: kent@sparky.sterling.com
Message-ID: <2qe50d$47i@sparky.sterling.com>
X-Md4-Signature: 88481968ecbbab73dfbc14ddbefc3bfb
Submitted-by: Raphael Manfredi <ram@acri.fr>
Posting-number: Volume 42, Issue 75
Archive-name: dist-3.0/patch24
Environment: UNIX, Perl, RCS
Patch-To: dist-3.0: Volume 39, Issue 5-32
[The latest patch for dist version 3.0 is #26.]
System: dist version 3.0
Patch #: 24
Priority: MEDIUM
Subject: patch #23, continued
Date: Fri May 06 17:42:30 MET DST 1994
From: Raphael Manfredi <ram@acri.fr>
Description:
See patch #23.
Fix: From rn, say "| patch -p -N -d DIR", where DIR is your dist source
directory. Outside of rn, say "cd DIR; patch -p -N <thisarticle".
If you don't have the patch program, apply the following by hand,
or get patch (version 2.0, latest patchlevel).
After patching:
*** DO NOTHING--INSTALL ALL PATCHES UP THROUGH #26 FIRST ***
If patch indicates that patchlevel is the wrong version, you may need
to apply one or more previous patches, or the patch may already
have been applied. See the patchlevel.h file to find out what has or
has not been applied. In any event, don't continue with the patch.
If you are missing previous patches they can be obtained from me:
Raphael Manfredi <ram@acri.fr>
If you send a mail message of the following form it will greatly speed
processing:
Subject: Command
@SH mailpatch PATH dist 3.0 LIST
^ note the c
where PATH is a return path FROM ME TO YOU either in Internet notation,
or in bang notation from some well-known host, and LIST is the number
of one or more patches you need, separated by spaces, commas, and/or
hyphens. Saying 35- says everything from 35 to the end.
To get some more detailed instructions, send me the following mail:
Subject: Command
@SH mailhelp PATH
Index: patchlevel.h
Prereq: 23
4c4
< #define PATCHLEVEL 23
---
> #define PATCHLEVEL 24
Index: mcon/U/locdist.U
Prereq: 3.0
*** mcon/U/locdist.U.old Fri May 6 17:28:30 1994
--- mcon/U/locdist.U Fri May 6 17:28:30 1994
***************
*** 1,4 ****
! ?RCS: $Id: locdist.U,v 3.0 1993/08/18 12:09:06 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: locdist.U,v 3.0.1.1 1994/05/06 15:09:20 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,19 ****
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: locdist.U,v $
?RCS: Revision 3.0 1993/08/18 12:09:06 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:locdist orgdist citydist statedist cntrydist contdist: test \
! newslibexp cat Myread Oldconfig
?MAKE: -pick add $@ %<
?S:locdist:
?S: This variable contains the eventual value of the LOCDIST symbol,
--- 9,22 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: locdist.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 15:09:20 ram
+ ?RCS: patch23: added support for multi-state regions (WED)
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:09:06 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:locdist orgdist citydist statedist multistatedist cntrydist contdist: \
! test newslibexp cat Myread Oldconfig
?MAKE: -pick add $@ %<
?S:locdist:
?S: This variable contains the eventual value of the LOCDIST symbol,
***************
*** 31,36 ****
--- 34,43 ----
?S: This variable contains the eventual value of the STATEDIST symbol,
?S: which is the state's or province's distribution name for news.
?S:.
+ ?S:multistatedist:
+ ?S: This variable contains the eventual value of the MULTISTATEDIST symbol,
+ ?S: which is the news distribution code for multi-state region.
+ ?S:.
?S:cntrydist:
?S: This variable contains the eventual value of the CNTRYDIST symbol,
?S: which is the country's distribution name for news.
***************
*** 55,60 ****
--- 62,71 ----
?C: This symbol contains the distribution name for the news system that
?C: restricts article distribution to the state or province.
?C:.
+ ?C:MULTISTATEDIST:
+ ?C: This symbol contains the distribution name for the news system that
+ ?C: restricts article distribution to a multi-state region.
+ ?C:.
?C:CNTRYDIST:
?C: This symbol contains the distribution name for the news system that
?C: restricts article distribution to the country.
***************
*** 66,71 ****
--- 77,83 ----
?H:#define LOCDIST "$locdist" /**/
?H:#define ORGDIST "$orgdist" /**/
?H:#define CITYDIST "$citydist" /**/
+ ?H:#define MULTISTATEDIST "$multistatedist" /**/
?H:#define STATEDIST "$statedist" /**/
?H:#define CNTRYDIST "$cntrydist" /**/
?H:#define CONTDIST "$contdist" /**/
***************
*** 85,90 ****
--- 97,103 ----
organization att, dec, kgb, ...
city la, ny, mosc, ...
state/province ca, nj, bc, ...
+ multi-state region pnw, ne, ...
country usa, can, rok, whatever
continent na (North America), asia, etc.
***************
*** 132,137 ****
--- 145,157 ----
rp="What is the distribution code for your state/province?"
. ./myread
statedist="$ans"
+ case "$multistatedist" in
+ '') dflt="none";;
+ *) dflt="$multistatedist";;
+ esac
+ rp="What is the distribution code for your multi-state region?"
+ . ./myread
+ multistatedist="$ans"
case "$cntrydist" in
'') dflt="none";;
*) dflt="$cntrydist";;
Index: mcon/U/i_termio.U
Prereq: 3.0
*** mcon/U/i_termio.U.old Fri May 6 17:28:25 1994
--- mcon/U/i_termio.U Fri May 6 17:28:25 1994
***************
*** 1,4 ****
! ?RCS: $Id: i_termio.U,v 3.0 1993/08/18 12:08:44 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: i_termio.U,v 3.0.1.1 1994/05/06 15:05:23 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,17 ****
--- 9,28 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: i_termio.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 15:05:23 ram
+ ?RCS: patch23: now include all three defines in config.h (ADO)
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:08:44 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
+ ?X:
+ ?X: Include all three (possible) definitions in config_h.SH.
+ ?X: There are enough implementations of posix <termios.h> out
+ ?X: there that do not work well with other system headers or are
+ ?X: incomplete. This makes it easier for the user to back off
+ ?X: and try <sgtty.h> or <termio.h> instead. This is achieved by
+ ?X: tying all three symbols to %<.
+ ?X:
?MAKE:i_termio i_sgtty i_termios: test Inlibc Cppsym Guess Setvar Findhdr
?MAKE: -pick add $@ %<
?S:i_termio:
***************
*** 29,53 ****
?S: indicates to the C program that it should include <sgtty.h> rather
?S: than <termio.h>.
?S:.
! ?C:I_TERMIO:
?C: This symbol, if defined, indicates that the program should include
?C: <termio.h> rather than <sgtty.h>. There are also differences in
?C: the ioctl() calls that depend on the value of this symbol.
?C:.
! ?C:I_TERMIOS:
?C: This symbol, if defined, indicates that the program should include
?C: the POSIX termios.h rather than sgtty.h or termio.h.
?C: There are also differences in the ioctl() calls that depend on the
?C: value of this symbol.
?C:.
! ?C:I_SGTTY:
?C: This symbol, if defined, indicates that the program should include
?C: <sgtty.h> rather than <termio.h>. There are also differences in
?C: the ioctl() calls that depend on the value of this symbol.
?C:.
! ?H:#$i_termio I_TERMIO /**/
! ?H:#$i_termios I_TERMIOS /**/
! ?H:#$i_sgtty I_SGTTY /**/
?H:.
?T:val2 val3
?LINT:set i_termio i_sgtty i_termios
--- 40,64 ----
?S: indicates to the C program that it should include <sgtty.h> rather
?S: than <termio.h>.
?S:.
! ?C:I_TERMIO ~ %<:
?C: This symbol, if defined, indicates that the program should include
?C: <termio.h> rather than <sgtty.h>. There are also differences in
?C: the ioctl() calls that depend on the value of this symbol.
?C:.
! ?C:I_TERMIOS ~ %<:
?C: This symbol, if defined, indicates that the program should include
?C: the POSIX termios.h rather than sgtty.h or termio.h.
?C: There are also differences in the ioctl() calls that depend on the
?C: value of this symbol.
?C:.
! ?C:I_SGTTY ~ %<:
?C: This symbol, if defined, indicates that the program should include
?C: <sgtty.h> rather than <termio.h>. There are also differences in
?C: the ioctl() calls that depend on the value of this symbol.
?C:.
! ?H:?%<:#$i_termio I_TERMIO /**/
! ?H:?%<:#$i_termios I_TERMIOS /**/
! ?H:?%<:#$i_sgtty I_SGTTY /**/
?H:.
?T:val2 val3
?LINT:set i_termio i_sgtty i_termios
Index: mcon/U/mallocsrc.U
Prereq: 3.0
*** mcon/U/mallocsrc.U.old Fri May 6 17:28:31 1994
--- mcon/U/mallocsrc.U Fri May 6 17:28:31 1994
***************
*** 1,4 ****
! ?RCS: $Id: mallocsrc.U,v 3.0 1993/08/18 12:09:12 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: mallocsrc.U,v 3.0.1.1 1994/05/06 15:10:46 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,19 ****
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: mallocsrc.U,v $
?RCS: Revision 3.0 1993/08/18 12:09:12 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:mallocsrc mallocobj usemymalloc malloctype: Myread Oldconfig package \
! Guess test rm cat +cc +ccflags Findhdr
?MAKE: -pick add $@ %<
?S:usemymalloc:
?S: This variable contains y if the malloc that comes with this package
--- 9,22 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: mallocsrc.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 15:10:46 ram
+ ?RCS: patch23: added support for MYMALLOC, mainly for perl5 (ADO)
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:09:12 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:mallocsrc mallocobj usemymalloc malloctype d_mymalloc: Myread \
! Oldconfig package Guess Setvar test rm cat +cc +ccflags Findhdr
?MAKE: -pick add $@ %<
?S:usemymalloc:
?S: This variable contains y if the malloc that comes with this package
***************
*** 27,32 ****
--- 30,40 ----
?S: Otherwise the value is null. This variable is intended for generating
?S: Makefiles.
?S:.
+ ?S:d_mymalloc:
+ ?S: This variable conditionally defines MYMALLOC in case other parts
+ ?S: of the source want to take special action if MYMALLOC is used.
+ ?S: This may include different sorts of profiling or error detection.
+ ?S:.
?S:mallocobj:
?S: This variable contains the name of the malloc.o that this package
?S: generates, if that malloc.o is preferred over the system malloc.
***************
*** 41,46 ****
--- 49,59 ----
?C:.
?H:#define Malloc_t $malloctype /**/
?H:.
+ ?C:MYMALLOC:
+ ?C: This symbol, if defined, indicates that we're using our own malloc.
+ ?C:.
+ ?H:#$d_mymalloc MYMALLOC /**/
+ ?H:.
?X: Cannot test for mallocsrc; it is the unit's name and there is a bug in
?X: the interpreter which defines all the names, even though they are not used.
@if mallocobj
***************
*** 48,58 ****
echo " "
case "$usemymalloc" in
'')
! if bsd || v7; then
! dflt='y'
! else
! dflt='n'
! fi
;;
*) dflt="$usemymalloc"
;;
--- 61,67 ----
echo " "
case "$usemymalloc" in
'')
! dflt='y'
;;
*) dflt="$usemymalloc"
;;
***************
*** 61,68 ****
. ./myread
usemymalloc="$ans"
case "$ans" in
! y*) mallocsrc='malloc.c'; mallocobj='malloc.o';;
! *) mallocsrc=''; mallocobj='';;
esac
@end
--- 70,85 ----
. ./myread
usemymalloc="$ans"
case "$ans" in
! y*)
! mallocsrc='malloc.c'
! mallocobj='malloc.o'
! d_mymalloc="$define"
! ;;
! *)
! mallocsrc=''
! mallocobj=''
! d_mymalloc="$undef"
! ;;
esac
@end
Index: mcon/U/d_readdir.U
Prereq: 3.0
*** mcon/U/d_readdir.U.old Fri May 6 17:28:18 1994
--- mcon/U/d_readdir.U Fri May 6 17:28:18 1994
***************
*** 1,4 ****
! ?RCS: $Id: d_readdir.U,v 3.0 1993/08/18 12:06:52 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: d_readdir.U,v 3.0.1.1 1994/05/06 14:46:37 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,20 ****
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: d_readdir.U,v $
?RCS: Revision 3.0 1993/08/18 12:06:52 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?X: Force checking for <dirent.h> inclusion
?X:INC: i_dirent
! ?MAKE:d_readdir: Inlibc
?MAKE: -pick add $@ %<
?S:d_readdir:
?S: This variable conditionally defines HAS_READDIR if readdir() is
--- 9,23 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: d_readdir.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 14:46:37 ram
+ ?RCS: patch23: added support for seekdir, telldir and rewinddir (ADO)
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:06:52 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?X: Force checking for <dirent.h> inclusion
?X:INC: i_dirent
! ?MAKE:d_readdir d_seekdir d_telldir d_rewinddir: Inlibc
?MAKE: -pick add $@ %<
?S:d_readdir:
?S: This variable conditionally defines HAS_READDIR if readdir() is
***************
*** 27,34 ****
?C:.
?H:#$d_readdir HAS_READDIR /**/
?H:.
! ?LINT:set d_readdir
! : see if readdir exists
set readdir d_readdir
eval $inlibc
--- 30,79 ----
?C:.
?H:#$d_readdir HAS_READDIR /**/
?H:.
! ?S:d_seekdir:
! ?S: This variable conditionally defines HAS_SEEKDIR if seekdir() is
! ?S: available.
! ?S:.
! ?C:HAS_SEEKDIR:
! ?C: This symbol, if defined, indicates that the seekdir routine is
! ?C: available. You may have to include <dirent.h>. See I_DIRENT.
! ?C:.
! ?H:#$d_seekdir HAS_SEEKDIR /**/
! ?H:.
! ?S:d_telldir:
! ?S: This variable conditionally defines HAS_TELLDIR if telldir() is
! ?S: available.
! ?S:.
! ?C:HAS_TELLDIR:
! ?C: This symbol, if defined, indicates that the telldir routine is
! ?C: available. You may have to include <dirent.h>. See I_DIRENT.
! ?C:.
! ?H:#$d_telldir HAS_TELLDIR /**/
! ?H:.
! ?S:d_rewinddir:
! ?S: This variable conditionally defines HAS_REWINDDIR if rewinddir() is
! ?S: available.
! ?S:.
! ?C:HAS_REWINDDIR:
! ?C: This symbol, if defined, indicates that the rewinddir routine is
! ?C: available. You may have to include <dirent.h>. See I_DIRENT.
! ?C:.
! ?H:#$d_rewinddir HAS_REWINDDIR /**/
! ?H:.
! ?LINT:set d_readdir d_seekdir d_telldir d_rewinddir
! : see if readdir and friends exist
set readdir d_readdir
eval $inlibc
+ @if d_seekdir || HAS_SEEKDIR
+ set seekdir d_seekdir
+ eval $inlibc
+ @end
+ @if d_telldir || HAS_TELLDIR
+ set telldir d_telldir
+ eval $inlibc
+ @end
+ @if d_rewinddir || HAS_REWINDDIR
+ set rewinddir d_rewinddir
+ eval $inlibc
+ @end
Index: mcon/U/d_strerror.U
Prereq: 3.0.1.1
*** mcon/U/d_strerror.U.old Fri May 6 17:28:21 1994
--- mcon/U/d_strerror.U Fri May 6 17:28:21 1994
***************
*** 1,4 ****
! ?RCS: $Id: d_strerror.U,v 3.0.1.1 1994/01/24 14:08:56 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: d_strerror.U,v 3.0.1.2 1994/05/06 14:58:26 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,14 ****
--- 9,17 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: d_strerror.U,v $
+ ?RCS: Revision 3.0.1.2 1994/05/06 14:58:26 ram
+ ?RCS: patch23: renamed strerror into Strerror to protect name space (ADO)
+ ?RCS:
?RCS: Revision 3.0.1.1 1994/01/24 14:08:56 ram
?RCS: patch16: protected code looking for sys_errnolist[] with @if
?RCS: patch16: added default value for d_sysernlst
***************
*** 37,43 ****
?C:HAS_STRERROR (STRERROR):
?C: This symbol, if defined, indicates that the strerror routine is
?C: available to translate error numbers to strings. See the writeup
! ?C: of strerror() in this file before you try to define your own.
?C:.
?C:HAS_SYS_ERRLIST (SYSERRLIST):
?C: This symbol, if defined, indicates that the sys_errlist array is
--- 40,46 ----
?C:HAS_STRERROR (STRERROR):
?C: This symbol, if defined, indicates that the strerror routine is
?C: available to translate error numbers to strings. See the writeup
! ?C: of Strerror() in this file before you try to define your own.
?C:.
?C:HAS_SYS_ERRLIST (SYSERRLIST):
?C: This symbol, if defined, indicates that the sys_errlist array is
***************
*** 49,55 ****
?C: available to translate an errno code into its symbolic name (e.g.
?C: ENOENT). The extern int sys_nerrno gives the size of that table.
?C:.
! ?C:strerror:
?C: This preprocessor symbol is defined as a macro if strerror() is
?C: not available to translate error numbers to strings but sys_errlist[]
?C: array is there.
--- 52,58 ----
?C: available to translate an errno code into its symbolic name (e.g.
?C: ENOENT). The extern int sys_nerrno gives the size of that table.
?C:.
! ?C:Strerror:
?C: This preprocessor symbol is defined as a macro if strerror() is
?C: not available to translate error numbers to strings but sys_errlist[]
?C: array is there.
***************
*** 57,63 ****
?H:#$d_strerror HAS_STRERROR /**/
?H:#$d_syserrlst HAS_SYS_ERRLIST /**/
?H:#$d_sysernlst HAS_SYS_ERRNOLIST /**/
! ?H:#$d_strerrm strerror(e) ((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e]) /**/
?H:.
?D:d_sysernlst=''
?T:xxx val
--- 60,70 ----
?H:#$d_strerror HAS_STRERROR /**/
?H:#$d_syserrlst HAS_SYS_ERRLIST /**/
?H:#$d_sysernlst HAS_SYS_ERRNOLIST /**/
! ?H:?%<:#ifdef HAS_STRERROR
! ?H:?%<:#define Strerror strerror
! ?H:?%<:#else
! ?H:#$d_strerrm Strerror(e) ((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e]) /**/
! ?H:?%<:#endif
?H:.
?D:d_sysernlst=''
?T:xxx val
Index: mcon/U/libflex.U
Prereq: 3.0.1.1
*** mcon/U/libflex.U.old Fri May 6 17:28:28 1994
--- mcon/U/libflex.U Fri May 6 17:28:28 1994
***************
*** 1,4 ****
! ?RCS: $Id: libflex.U,v 3.0.1.1 1994/01/24 14:13:25 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: libflex.U,v 3.0.1.2 1994/05/06 15:07:02 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,21 ****
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: libflex.U,v $
?RCS: Revision 3.0.1.1 1994/01/24 14:13:25 ram
?RCS: patch16: un-obsoleted this unit to allow smooth lex/flex compilations
?RCS:
?RCS: Revision 3.0 1993/08/18 12:08:59 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:libflex: test Loc lex libpth
?MAKE: -pick add $@ %<
?S:libflex:
?S: This variable contains the argument to pass to the loader in order
--- 9,24 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: libflex.U,v $
+ ?RCS: Revision 3.0.1.2 1994/05/06 15:07:02 ram
+ ?RCS: patch23: now uses full library path instead of -l notation
+ ?RCS:
?RCS: Revision 3.0.1.1 1994/01/24 14:13:25 ram
?RCS: patch16: un-obsoleted this unit to allow smooth lex/flex compilations
?RCS:
?RCS: Revision 3.0 1993/08/18 12:08:59 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:libflex: Loc lex libpth
?MAKE: -pick add $@ %<
?S:libflex:
?S: This variable contains the argument to pass to the loader in order
***************
*** 27,66 ****
echo " "
case "$lex" in
*flex)
! if $test -r /usr/lib/libfl.a || $test -r /usr/local/lib/libfl.a ; then
! echo "-lfl found." >&4
! libflex='-lfl'
! else
! xxx=`./loc libfl.a x $libpth`
! case "$xxx" in
! x)
! echo "No flex library found." >&4
! libflex=''
! ;;
! *)
! echo "flex library found in $xxx." >&4
! libflex="$xxx"
! ;;
! esac
! fi
;;
*lex)
! if $test -r /usr/lib/libl.a || $test -r /usr/local/lib/libl.a ; then
! echo "-ll found." >&4
! libflex='-ll'
! else
! xxx=`./loc libl.a x $libpth`
! case "$xxx" in
! x)
! echo "No lex library found." >&4
! libflex=''
! ;;
! *)
! echo "lex library found in $xxx." >&4
! libflex="$xxx"
! ;;
! esac
! fi
;;
*)
echo "You don't seem to have lex or flex, so I won't look for libraries." >&4
--- 30,59 ----
echo " "
case "$lex" in
*flex)
! xxx=`./loc libfl.a x $libpth`
! case "$xxx" in
! x)
! echo "No flex library found." >&4
! libflex=''
! ;;
! *)
! echo "flex library found in $xxx." >&4
! libflex="$xxx"
! ;;
! esac
;;
*lex)
! xxx=`./loc libl.a x $libpth`
! case "$xxx" in
! x)
! echo "No lex library found." >&4
! libflex=''
! ;;
! *)
! echo "lex library found in $xxx." >&4
! libflex="$xxx"
! ;;
! esac
;;
*)
echo "You don't seem to have lex or flex, so I won't look for libraries." >&4
Index: mcon/U/cc.U
Prereq: 3.0
*** mcon/U/cc.U.old Fri May 6 17:28:14 1994
--- mcon/U/cc.U Fri May 6 17:28:14 1994
***************
*** 1,4 ****
! ?RCS: $Id: cc.U,v 3.0 1993/08/18 12:05:30 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: cc.U,v 3.0.1.1 1994/05/06 14:26:06 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,25 ****
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: cc.U,v $
?RCS: Revision 3.0 1993/08/18 12:05:30 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:cc: cat contains sysman +large cpp Mcc Myread Guess Oldconfig Loc
?MAKE: -pick add $@ %<
?S:cc:
?S: This variable holds the name of a command to execute a C compiler which
?S: can resolve multiple global references that happen to have the same
?S: name. Usual values are "cc", "Mcc", "cc -M", and "gcc".
?S:.
?D:cc='cc'
?LINT:change cpp
: see if we need a special compiler
echo " "
--- 9,35 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: cc.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 14:26:06 ram
+ ?RCS: patch23: added support for gcc version (ADO)
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:05:30 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:cc gccversion: cat contains sysman +large cpp rm test \
! Mcc Myread Guess Oldconfig Loc
?MAKE: -pick add $@ %<
?S:cc:
?S: This variable holds the name of a command to execute a C compiler which
?S: can resolve multiple global references that happen to have the same
?S: name. Usual values are "cc", "Mcc", "cc -M", and "gcc".
?S:.
+ ?S:gccversion:
+ ?S: If GNU cc (gcc) is used, this variable holds '1' or '2' to
+ ?S: indicate whether the compiler is version 1 or 2. This is used in
+ ?S: setting some of the default cflags.
+ ?S:.
?D:cc='cc'
+ ?D:gccversion='1'
?LINT:change cpp
: see if we need a special compiler
echo " "
***************
*** 64,69 ****
cc="$ans"
fi
case "$cc" in
! gcc*) cpp=`./loc gcc-cpp $cpp $pth`;;
esac
--- 74,115 ----
cc="$ans"
fi
case "$cc" in
! gcc*)
! echo "Checking out which version of gcc you have..." >&4
! $cat >gccvers.c <<EOM
! #include <stdio.h>
! int main()
! {
! char *v;
! v = "unknown";
! #ifdef __GNUC__
! #ifdef __VERSION__
! v = __VERSION__;
! #endif
! #endif
! switch((int) v[0]) {
! case '1': printf("1\n"); break;
! case '2': printf("2\n"); break;
! case '3': printf("3\n"); break;
! default: break;
! }
! #ifdef __GNUC__
! return 0;
! #else
! return 1;
! #endif
! }
! EOM
! if $cc -o gccvers gccvers.c >/dev/null 2>&1; then
! gccversion=`./gccvers`
! echo "You appear to have version $gccversion."
! else
! echo "Doesn't appear to be GNU cc after all."
! fi
! $rm -f gccvers*
! if $test "$gccversion" = '1'; then
! cpp=`./loc gcc-cpp $cpp $pth`
! fi
! ;;
esac
Index: kit/kitpost.man
*** kit/kitpost.man.old Fri May 6 17:28:06 1994
--- kit/kitpost.man Fri May 6 17:28:07 1994
***************
*** 0 ****
--- 1,86 ----
+ ''' $Id: kitpost.man,v 3.0.1.1 1994/05/06 13:55:01 ram Exp $
+ '''
+ ''' Copyright (c) 1991-1993, Raphael Manfredi
+ '''
+ ''' You may redistribute only under the terms of the Artistic Licence,
+ ''' as specified in the README file that comes with the distribution.
+ ''' You may reuse parts of this distribution only within the terms of
+ ''' that same Artistic Licence; a copy of which may be found at the root
+ ''' of the source tree for dist 3.0.
+ '''
+ ''' $Log: kitpost.man,v $
+ ''' Revision 3.0.1.1 1994/05/06 13:55:01 ram
+ ''' patch23: created
+ '''
+ .TH KITSEND 1 ram
+ .SH NAME
+ kitpost \- posts distribution kits
+ .SH SYNOPSIS
+ .B kitpost
+ [
+ .B \-hrV
+ ] [
+ .B -H
+ .I file
+ ] [
+ .B -D
+ .I desc
+ ] [
+ .B -m
+ .I dest1,dest2
+ ] [
+ .I kits
+ ] [
+ .I newsgroups
+ ]
+ .SH DESCRIPTION
+ .I Kitpost
+ posts distribution kits made by \fImakedist\fR to some (source) newsgroups
+ specified on the command line. If you do not specify any kit list, then all the
+ kits are sent. Otherwise, only the specified kits will be (re)sent.
+ .PP
+ A kit list may include ranges, \fI1-10\fR specifying kits 1 through 10,
+ and \fI5-\fR meaning kits 5 up to the last one. You may also specify kit
+ numbers by separating them with commas or spaces, and even mix with ranges,
+ such as: \fI1 3 5-7 9\fR.
+ .PP
+ .I Kitpost
+ ensures correct \fIReferences:\fR lines are inserted in your postings so that
+ all parts but the first point to the root article. Threaded newsreaders and
+ end-users traditionally appreciate that.
+ .SH OPTIONS
+ The following options are recognized by \fIkitpost\fR:
+ .TP 10
+ .B \-h
+ Print help message and exit.
+ .TP
+ \fB\-m\fI dest1,destn\fR
+ Sends kits by e-mail to the specified recipients. This option may be used in
+ conjunction with newsgroup posting. It is mainly intended for sites where
+ direct posting to a moderated newsgroup is not allowed by \fIinews\fR. You may
+ thus send your kits to the newsgroup moderator in a form that will ease the
+ whole posting process.
+ .TP
+ .B \-r
+ Signals a repost.
+ .TP
+ \fB\-D\fI description\fR
+ Specify a description string that will be added to the subject line. Usually
+ a brief sentence (less than, say, 40 characters).
+ .TP
+ \fB\-H\fI file\fR
+ Specify a file to be used as header introduction in the first part of your
+ posting. Usually the root README file.
+ .TP
+ .B \-V
+ Print version number and exit.
+ .SH BUGS
+ Article cross-referencing is properly set-up only when the whole package is
+ (re)posted in one batch.
+ .PP
+ It is not currently possible to set-up the article headers manually or
+ better, interactively.
+ .SH AUTHOR
+ Raphael Manfredi <ram@acri.fr>
+ .SH "SEE ALSO"
+ makedist(1), kitsend(1).
Index: mcon/U/gidtype.U
Prereq: 3.0
*** mcon/U/gidtype.U.old Fri May 6 17:28:22 1994
--- mcon/U/gidtype.U Fri May 6 17:28:23 1994
***************
*** 1,4 ****
! ?RCS: $Id: gidtype.U,v 3.0 1993/08/18 12:08:11 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: gidtype.U,v 3.0.1.1 1994/05/06 15:01:51 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,27 ****
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: gidtype.U,v $
?RCS: Revision 3.0 1993/08/18 12:08:11 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:gidtype: Myread Oldconfig contains Findhdr
?MAKE: -pick add $@ %<
?S:gidtype:
! ?S: This variable defines GIDTYPE to be something like gid_t, int,
! ?S: ushort, or whatever type is used to declare group ids in the kernel.
?S:.
?C:Gid_t (GIDTYPE):
! ?C: This symbol holds the type used to declare user ids in the kernel.
! ?C: It can be int, ushort, uid_t, etc... It may be necessary to include
! ?C: <sys/types.h> to get any typedef'ed information.
?C:.
?H:#define Gid_t $gidtype /* Type for getgid(), etc... */
?H:.
--- 9,34 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: gidtype.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 15:01:51 ram
+ ?RCS: patch23: protected gidtype setting via setvar (ADO)
+ ?RCS: patch23: made Gid_t comment more explicit (ADO)
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:08:11 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:gidtype: Myread Oldconfig contains Findhdr Setvar
?MAKE: -pick add $@ %<
?S:gidtype:
! ?S: This variable defines Gid_t to be something like gid_t, int,
! ?S: ushort, or whatever type is used to declare the return type
! ?S: of getgid(). Typically, it is the type of group ids in the kernel.
?S:.
?C:Gid_t (GIDTYPE):
! ?C: This symbol holds the return type of getgid() and the type of
! ?C: argument to setrgid() and related functions. Typically,
! ?C: it is the type of group ids in the kernel. It can be int, ushort,
! ?C: uid_t, etc... It may be necessary to include <sys/types.h> to get
! ?C: any typedef'ed information.
?C:.
?H:#define Gid_t $gidtype /* Type for getgid(), etc... */
?H:.
***************
*** 43,49 ****
*) dflt="$gidtype";;
esac
echo " "
! rp="What type are group ids on this system declared as?"
. ./myread
! gidtype="$ans"
--- 50,58 ----
*) dflt="$gidtype";;
esac
echo " "
! rp="What is the type for group ids returned by getgid()?"
. ./myread
! val="$ans"
! set gidtype
! eval $setvar
Index: mcon/U/d_shmat.U
Prereq: 3.0
*** mcon/U/d_shmat.U.old Fri May 6 17:28:20 1994
--- mcon/U/d_shmat.U Fri May 6 17:28:20 1994
***************
*** 1,4 ****
! ?RCS: $Id: d_shmat.U,v 3.0 1993/08/18 12:07:18 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: d_shmat.U,v 3.0.1.1 1994/05/06 14:54:18 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,31 ****
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: d_shmat.U,v $
?RCS: Revision 3.0 1993/08/18 12:07:18 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:d_shmat: Inlibc
?MAKE: -pick add $@ %<
?S:d_shmat:
?S: This variable conditionally defines the HAS_SHMAT symbol, which
?S: indicates to the C program that the shmat() routine is available.
?S:.
?C:HAS_SHMAT:
?C: This symbol, if defined, indicates that the shmat() routine is
?C: available to attach a shared memory segment to the process space.
?C:.
?H:#$d_shmat HAS_SHMAT /**/
?H:.
?LINT:set d_shmat
: see if shmat exists
set shmat d_shmat
eval $inlibc
--- 9,59 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: d_shmat.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 14:54:18 ram
+ ?RCS: patch23: new Shmat_t symbol to declare return type of shmat()
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:07:18 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:d_shmat shmattype: Inlibc cat +cc +ccflags rm
?MAKE: -pick add $@ %<
?S:d_shmat:
?S: This variable conditionally defines the HAS_SHMAT symbol, which
?S: indicates to the C program that the shmat() routine is available.
?S:.
+ ?S:shmattype:
+ ?S: This symbol contains the type of pointer returned by shmat().
+ ?S: It can be 'void *' or 'char *'.
+ ?S:.
?C:HAS_SHMAT:
?C: This symbol, if defined, indicates that the shmat() routine is
?C: available to attach a shared memory segment to the process space.
?C:.
+ ?C:Shmat_t:
+ ?C: This symbol holds the return type of the shmat() system call.
+ ?C: Usually set to 'void *' or 'char *'.
+ ?C:.
?H:#$d_shmat HAS_SHMAT /**/
+ ?H:#define Shmat_t $shmattype /**/
?H:.
?LINT:set d_shmat
: see if shmat exists
set shmat d_shmat
eval $inlibc
+ : see what shmat returns
+ case "$d_shmat" in
+ "$define")
+ $cat >shmat.c <<'END'
+ #include <sys/shm.h>
+ void *shmat();
+ END
+ if $cc $ccflags -c shmat.c >/dev/null 2>&1; then
+ shmattype='void *'
+ else
+ shmattype='char *'
+ fi
+ $rm -f shmat.[co]
+ echo "and it returns ($shmattype)." >&4
+ ;;
+ esac
Index: mcon/U/cf_who.U
Prereq: 3.0
*** mcon/U/cf_who.U.old Fri May 6 17:28:16 1994
--- mcon/U/cf_who.U Fri May 6 17:28:16 1994
***************
*** 1,4 ****
! ?RCS: $Id: cf_who.U,v 3.0 1993/08/18 12:05:32 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: cf_who.U,v 3.0.1.1 1994/05/06 14:42:34 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,14 ****
--- 9,17 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: cf_who.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 14:42:34 ram
+ ?RCS: patch23: login name now computed the hard way
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:05:32 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
***************
*** 16,22 ****
?X: Oldconfig dependency is there to ensure computation occurs after old values
?X: from config.sh have been loaded, so that we can supersede them.
?X:
! ?MAKE:cf_time cf_by: date Oldconfig
?MAKE: -pick add $@ %<
?S:cf_time:
?S: Holds the output of the "date" command when the configuration file was
--- 19,25 ----
?X: Oldconfig dependency is there to ensure computation occurs after old values
?X: from config.sh have been loaded, so that we can supersede them.
?X:
! ?MAKE:cf_time cf_by: cat date rm test Oldconfig
?MAKE: -pick add $@ %<
?S:cf_time:
?S: Holds the output of the "date" command when the configuration file was
***************
*** 28,36 ****
?S:.
: who configured the system
cf_time=`$date 2>&1`
?X: Leave a white space between first two '(' for ksh. The sub-shell is needed
?X: on some machines to avoid the error message when logname is not found; e.g.
?X: on SUN-OS 3.2, (logname || whoami) would not execute whoami if logname was
?X: not found. Sigh!
! cf_by=`( (logname) 2>/dev/null || whoami) 2>&1`
--- 31,50 ----
?S:.
: who configured the system
cf_time=`$date 2>&1`
+ ?X:
?X: Leave a white space between first two '(' for ksh. The sub-shell is needed
?X: on some machines to avoid the error message when logname is not found; e.g.
?X: on SUN-OS 3.2, (logname || whoami) would not execute whoami if logname was
?X: not found. Sigh!
! ?X:
! ?X: Convex had a broken logname executable which returned a non-zero status,
! ?X: and that broke the previous:
! ?X: cf_by=`( (logname) 2>/dev/null || whoami) 2>&1`
! ?X: Switch to emergency mode... -- RAM, 19/04/94
! ?X:
! (logname > .temp) >/dev/null 2>&1
! $test -s .temp || (whoami > .temp) >/dev/null 2>&1
! $test -s .temp || echo unknown > .temp
! cf_by=`$cat .temp`
! $rm -f .temp
Index: mcon/U/libc.U
Prereq: 3.0.1.3
*** mcon/U/libc.U.old Fri May 6 17:28:27 1994
--- mcon/U/libc.U Fri May 6 17:28:27 1994
***************
*** 1,4 ****
! ?RCS: $Id: libc.U,v 3.0.1.3 1994/01/24 14:12:17 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: libc.U,v 3.0.1.4 1994/05/06 15:06:33 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,14 ****
--- 9,17 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: libc.U,v $
+ ?RCS: Revision 3.0.1.4 1994/05/06 15:06:33 ram
+ ?RCS: patch23: added shared library knowledge (ADO and WED)
+ ?RCS:
?RCS: Revision 3.0.1.3 1994/01/24 14:12:17 ram
?RCS: patch16: can now export nm_extract as an internal-use only variable
?RCS:
***************
*** 22,28 ****
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?MAKE:libc +nm_extract: echo n c rm test grep Getfile Myread Oldconfig Loc \
! sed libs incpath libpth runnm nm_opt contains plibpth xlibpth
?MAKE: -pick add $@ %<
?S:libc:
?S: This variable contains the location of the C library.
--- 25,31 ----
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?MAKE:libc +nm_extract: echo n c rm test grep Getfile Myread Oldconfig Loc \
! sed libs incpath libpth runnm nm_opt contains xlibpth
?MAKE: -pick add $@ %<
?S:libc:
?S: This variable contains the location of the C library.
***************
*** 33,39 ****
?S: internally by Configure.
?S:.
?T:thislib try libnames xxx xscan xrun thisname com tans
! ?LINT:change libpth nm_opt
case "$runnm" in
true)
?X: indentation is wrong on purpose--RAM
--- 36,42 ----
?S: internally by Configure.
?S:.
?T:thislib try libnames xxx xscan xrun thisname com tans
! ?LINT:change nm_opt
case "$runnm" in
true)
?X: indentation is wrong on purpose--RAM
***************
*** 46,52 ****
esac
;;
esac
- libpth="$plibpth $libpth"
libnames='';
case "$libs" in
'') ;;
--- 49,54 ----
***************
*** 62,68 ****
if test ! -f $try; then
try=`./loc Slib$thislib.a blurfl/dyick $xlibpth`
if test ! -f $try; then
! try=''
fi
fi
fi
--- 64,76 ----
if test ! -f $try; then
try=`./loc Slib$thislib.a blurfl/dyick $xlibpth`
if test ! -f $try; then
! try=`./loc lib$thislib.so.'*' blurfl/dyick $libpth`
! if test ! -f $try; then
! try=`./loc lib$thislib.so blurfl/dyick $libpth`
! if test ! -f $try; then
! try=''
! fi
! fi
fi
fi
fi
Index: mcon/U/d_vfork.U
Prereq: 3.0.1.2
*** mcon/U/d_vfork.U.old Fri May 6 17:28:22 1994
--- mcon/U/d_vfork.U Fri May 6 17:28:22 1994
***************
*** 1,4 ****
! ?RCS: $Id: d_vfork.U,v 3.0.1.2 1993/10/16 13:49:39 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: d_vfork.U,v 3.0.1.3 1994/05/06 14:59:09 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,14 ****
--- 9,17 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: d_vfork.U,v $
+ ?RCS: Revision 3.0.1.3 1994/05/06 14:59:09 ram
+ ?RCS: patch23: now explicitely ask whether vfork() should be used (ADO)
+ ?RCS:
?RCS: Revision 3.0.1.2 1993/10/16 13:49:39 ram
?RCS: patch12: added magic for vfork()
?RCS:
***************
*** 19,30 ****
?RCS: Revision 3.0 1993/08/18 12:07:55 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:d_vfork: Inlibc
?MAKE: -pick add $@ %<
?S:d_vfork:
?S: This variable conditionally defines the HAS_VFORK symbol, which
?S: indicates the vfork() routine is available.
?S:.
?C:HAS_VFORK (VFORK):
?C: This symbol, if defined, indicates that vfork() exists.
?C:.
--- 22,38 ----
?RCS: Revision 3.0 1993/08/18 12:07:55 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:d_vfork usevfork: Inlibc Myread Oldconfig
?MAKE: -pick add $@ %<
?S:d_vfork:
?S: This variable conditionally defines the HAS_VFORK symbol, which
?S: indicates the vfork() routine is available.
?S:.
+ ?S:usevfork:
+ ?S: This variable is set to true when the user accepts to use vfork.
+ ?S: It is set to false when no vfork is available or when the user
+ ?S: explicitely requests not to use vfork.
+ ?S:.
?C:HAS_VFORK (VFORK):
?C: This symbol, if defined, indicates that vfork() exists.
?C:.
***************
*** 48,51 ****
--- 56,84 ----
: see if there is a vfork
set vfork d_vfork
eval $inlibc
+
+ : Ok, but do we want to use it. vfork is reportedly unreliable in
+ : perl on Solaris 2.x, and probably elsewhere.
+ case "$d_vfork" in
+ $define)
+ echo " "
+ case "$usevfork" in
+ true) dflt='y';;
+ *) dflt='n';;
+ esac
+ rp="Some systems have problems with vfork(). Do you want to use it?"
+ . ./myread
+ case "$ans" in
+ y|Y) usevfork='true';;
+ *)
+ echo "Ok, we won't use vfork()."
+ d_vfork="$undef"
+ usevfork='false'
+ ;;
+ esac
+ ;;
+ *)
+ usevfork='false'
+ ;;
+ esac
Index: mcon/pl/extract.pl
Prereq: 3.0
*** mcon/pl/extract.pl.old Fri May 6 17:28:39 1994
--- mcon/pl/extract.pl Fri May 6 17:28:39 1994
***************
*** 1,4 ****
! ;# $Id: extract.pl,v 3.0 1993/08/18 12:10:22 ram Exp $
;#
;# Copyright (c) 1991-1993, Raphael Manfredi
;#
--- 1,4 ----
! ;# $Id: extract.pl,v 3.0.1.1 1994/05/06 15:21:43 ram Exp $
;#
;# Copyright (c) 1991-1993, Raphael Manfredi
;#
***************
*** 9,14 ****
--- 9,17 ----
;# of the source tree for dist 3.0.
;#
;# $Log: extract.pl,v $
+ ;# Revision 3.0.1.1 1994/05/06 15:21:43 ram
+ ;# patch23: now saves the last unit line value for metalint
+ ;#
;# Revision 3.0 1993/08/18 12:10:22 ram
;# Baseline for dist 3.0 netwide release.
;#
***************
*** 23,28 ****
--- 26,32 ----
local($dir, $unit); # Directory and unit's name
local($old_version) = 0; # True when old-version unit detected
local($mc) = "$MC/U"; # Public metaconfig directory
+ local($line); # Last processed line for metalint
printf "Extracting dependency lists from %d units...\n", $#ARGV+1
unless $opt_s;
***************
*** 50,55 ****
--- 54,60 ----
$file = "$unit.U" if $dir eq $mc;
print "$dir/$unit.U:\n" if $opt_d;
line: while (<FILE>) {
+ $line = $_; # Save last processed unit line
if (s/^\?([\w\-]+)://) { # We may have found a control line
$proc = $Depend{$1}; # Look for a procedure to handle it
unless ($proc) { # Unknown control line
***************
*** 70,83 ****
} else {
next file unless $body; # No procedure to handle body
do {
eval { &$body($_) } ; # From now on, it's the unit body
! } while ($_ = <FILE>);
next file;
}
}
} continue {
warn(" Warning: $file is a pre-3.0 version.\n") if $old_version;
! &$ending if $ending; # Post-processing for metalint
}
&end_extraction; # End the extraction process
--- 75,89 ----
} else {
next file unless $body; # No procedure to handle body
do {
+ $line = $_; # Save last processed unit line
eval { &$body($_) } ; # From now on, it's the unit body
! } while (defined ($_ = <FILE>));
next file;
}
}
} continue {
warn(" Warning: $file is a pre-3.0 version.\n") if $old_version;
! &$ending($line) if $ending; # Post-processing for metalint
}
&end_extraction; # End the extraction process
Index: mcon/U/libyacc.U
Prereq: 3.0.1.1
*** mcon/U/libyacc.U.old Fri May 6 17:28:29 1994
--- mcon/U/libyacc.U Fri May 6 17:28:29 1994
***************
*** 1,4 ****
! ?RCS: $Id: libyacc.U,v 3.0.1.1 1994/01/24 14:13:49 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: libyacc.U,v 3.0.1.2 1994/05/06 15:09:01 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,21 ****
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: libyacc.U,v $
?RCS: Revision 3.0.1.1 1994/01/24 14:13:49 ram
?RCS: patch16: un-obsoleted this unit for smooth yacc compilations
?RCS:
?RCS: Revision 3.0 1993/08/18 12:09:04 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:libyacc: Loc yacc libpth test
?MAKE: -pick add $@ %<
?S:libyacc:
?S: This variable contains the argument to pass to the loader in order
--- 9,24 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: libyacc.U,v $
+ ?RCS: Revision 3.0.1.2 1994/05/06 15:09:01 ram
+ ?RCS: patch23: now uses full library path instead of -l notation
+ ?RCS:
?RCS: Revision 3.0.1.1 1994/01/24 14:13:49 ram
?RCS: patch16: un-obsoleted this unit for smooth yacc compilations
?RCS:
?RCS: Revision 3.0 1993/08/18 12:09:04 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
! ?MAKE:libyacc: Loc yacc libpth
?MAKE: -pick add $@ %<
?S:libyacc:
?S: This variable contains the argument to pass to the loader in order
***************
*** 27,48 ****
echo " "
case "$yacc" in
*yacc)
! if $test -r /usr/lib/liby.a || $test -r /usr/local/lib/liby.a ; then
! echo "-ly found." >&4
! libyacc='-ly'
! else
! xxx=`./loc liby.a x $libpth`
! case "$xxx" in
! x)
! echo "No yacc library found." >&4
! libyacc=''
! ;;
! *)
! echo "yacc library found in $xxx." >&4
! libyacc="$xxx"
! ;;
! esac
! fi
;;
*bison*)
echo "You are using bison, so I won't look for a yacc library." >&4
--- 30,46 ----
echo " "
case "$yacc" in
*yacc)
! xxx=`./loc liby.a x $libpth`
! case "$xxx" in
! x)
! echo "No yacc library found." >&4
! libyacc=''
! ;;
! *)
! echo "yacc library found in $xxx." >&4
! libyacc="$xxx"
! ;;
! esac
;;
*bison*)
echo "You are using bison, so I won't look for a yacc library." >&4
Index: mcon/U/alignbytes.U
Prereq: 3.0
*** mcon/U/alignbytes.U.old Fri May 6 17:28:13 1994
--- mcon/U/alignbytes.U Fri May 6 17:28:13 1994
***************
*** 1,4 ****
! ?RCS: $Id: alignbytes.U,v 3.0 1993/08/18 12:05:23 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
--- 1,4 ----
! ?RCS: $Id: alignbytes.U,v 3.0.1.1 1994/05/06 14:25:20 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
?RCS:
***************
*** 9,14 ****
--- 9,17 ----
?RCS: of the source tree for dist 3.0.
?RCS:
?RCS: $Log: alignbytes.U,v $
+ ?RCS: Revision 3.0.1.1 1994/05/06 14:25:20 ram
+ ?RCS: patch23: avoid ALIGNBYTES, since it conflicts on NetBSD
+ ?RCS:
?RCS: Revision 3.0 1993/08/18 12:05:23 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
***************
*** 18,28 ****
?S: This variable holds the number of bytes required to align a
?S: double. Usual values are 2, 4 and 8.
?S:.
! ?C:ALIGNBYTES:
?C: This symbol contains the number of bytes required to align a
?C: double. Usual values are 2, 4 and 8.
?C:.
! ?H:#define ALIGNBYTES $alignbytes /**/
?H:.
: check for alignment requirements
echo " "
--- 21,33 ----
?S: This variable holds the number of bytes required to align a
?S: double. Usual values are 2, 4 and 8.
?S:.
! ?X: This used to be called ALIGNBYTES, but that conflicts with
! ?X: <machines/param.h> in NetBSD.
! ?C:MEM_ALIGNBYTES (ALIGNBYTES):
?C: This symbol contains the number of bytes required to align a
?C: double. Usual values are 2, 4 and 8.
?C:.
! ?H:#define MEM_ALIGNBYTES $alignbytes /**/
?H:.
: check for alignment requirements
echo " "
*** End of Patch 24 ***
exit 0 # Just in case...