home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-01-27 | 44.6 KB | 1,589 lines |
- Newsgroups: comp.sources.misc
- From: Raphael Manfredi <ram@acri.fr>
- Subject: v41i116: dist-3.0 - Configure script generator and related tools, Patch20
- Message-ID: <1994Jan28.023436.2557@sparky.sterling.com>
- X-Md4-Signature: afdb77965094b368e194b23abd7c1671
- Sender: kent@sparky.sterling.com (Kent Landfield)
- Organization: Advanced Computer Research Institute, Lyon, France
- Date: Fri, 28 Jan 1994 02:34:36 GMT
- Approved: kent@sparky.sterling.com
-
- Submitted-by: Raphael Manfredi <ram@acri.fr>
- Posting-number: Volume 41, Issue 116
- Archive-name: dist-3.0/patch20
- Environment: UNIX, Perl, RCS
- Patch-To: dist-3.0: Volume 39, Issue 5-32
-
- [The latest patch for dist version 3.0 is #22.]
-
- System: dist version 3.0
- Patch #: 20
- Priority: LOW
- Subject: patch #16, continued
- Date: Mon Jan 24 15:54:21 MET 1994
- From: Raphael Manfredi <ram@acri.fr>
-
- Description:
- See patch #16.
-
-
- 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 #22 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: 19
- 4c4
- < #define PATCHLEVEL 19
- ---
- > #define PATCHLEVEL 20
-
- Index: pat/patftp.SH
- Prereq: 3.0.1.2
- *** pat/patftp.SH.old Mon Jan 24 15:35:21 1994
- --- pat/patftp.SH Mon Jan 24 15:35:21 1994
- ***************
- *** 20,26 ****
- eval "exec perl -S \$0 \$*"
- if \$running_under_some_shell;
-
- ! # $Id: patftp.SH,v 3.0.1.2 1993/08/24 12:16:57 ram Exp $
- #
- # Copyright (c) 1991-1993, Raphael Manfredi
- #
- --- 20,26 ----
- eval "exec perl -S \$0 \$*"
- if \$running_under_some_shell;
-
- ! # $Id: patftp.SH,v 3.0.1.3 1994/01/24 14:30:43 ram Exp $
- #
- # Copyright (c) 1991-1993, Raphael Manfredi
- #
- ***************
- *** 33,38 ****
- --- 33,42 ----
- # Original Author: Larry Wall <lwall@netlabs.com>
- #
- # $Log: patftp.SH,v $
- + # Revision 3.0.1.3 1994/01/24 14:30:43 ram
- + # patch16: now prefix error messages with program's name
- + # patch16: added ~/.dist_profile awareness
- + #
- # Revision 3.0.1.2 1993/08/24 12:16:57 ram
- # patch3: removed useless orgname variable
- #
- ***************
- *** 48,58 ****
- !GROK!THIS!
- cat >>patftp <<'!NO!SUBS!'
-
- require 'getopts.pl';
- &usage unless &Getopts("hV");
-
- if ($opt_V) {
- ! print STDERR "patftp $version PL$patchlevel\n";
- exit 0;
- } elsif ($opt_h) {
- &usage;
- --- 52,63 ----
- !GROK!THIS!
- cat >>patftp <<'!NO!SUBS!'
-
- + $progname = &profile; # Read ~/.dist_profile
- require 'getopts.pl';
- &usage unless &Getopts("hV");
-
- if ($opt_V) {
- ! print STDERR "$progname $version PL$patchlevel\n";
- exit 0;
- } elsif ($opt_h) {
- &usage;
- ***************
- *** 64,75 ****
- &readpackage;
-
- if ($#ARGV < 0) {
- ! open(PL,"patchlevel.h") || die "Can't open patchlevel.h\n";
- while (<PL>) {
- $argv = $1 if /^#define\s+PATCHLEVEL\s+(\d+)/;
- }
- close PL;
- ! die "Malformed patchlevel.h file.\n" if $argv eq '';
- @ARGV = $argv;
- } else {
- for (@ARGV) {
- --- 69,80 ----
- &readpackage;
-
- if ($#ARGV < 0) {
- ! open(PL,"patchlevel.h") || die "$progname: can't open patchlevel.h: $!\n";
- while (<PL>) {
- $argv = $1 if /^#define\s+PATCHLEVEL\s+(\d+)/;
- }
- close PL;
- ! die "$progname: malformed patchlevel.h file.\n" if $argv eq '';
- @ARGV = $argv;
- } else {
- for (@ARGV) {
- ***************
- *** 80,94 ****
- }
-
- if ($#ARGV < 0) {
- ! print STDERR "No patches specified.\n";
- &usage;
- } elsif ($#ARGV) {
- ! print "Copying $package $baserev patches $argv to $ftpdir...\n";
- } else {
- ! print "Copying $package $baserev patch $argv to $ftpdir...\n";
- }
-
- ! chdir 'bugs' || die "Can't cd to bugs\n";
-
- until ($#ARGV < 0) {
- $patnum = shift;
- --- 85,99 ----
- }
-
- if ($#ARGV < 0) {
- ! print STDERR "$progname: no patches specified.\n";
- &usage;
- } elsif ($#ARGV) {
- ! print "$progname: copying $package $baserev patches $argv to $ftpdir...\n";
- } else {
- ! print "$progname: copying $package $baserev patch $argv to $ftpdir...\n";
- }
-
- ! chdir 'bugs' || die "$progname: can't cd to bugs: $!\n";
-
- until ($#ARGV < 0) {
- $patnum = shift;
- ***************
- *** 96,104 ****
- }
-
- sub usage {
- ! print STDERR "Usage: patftp [-hV] patchlist\n";
- ! print STDERR " -h : print this message and exit\n";
- ! print STDERR " -V : print version number and exit\n";
- exit 1;
- }
-
- --- 101,111 ----
- }
-
- sub usage {
- ! print STDERR <<EOM;
- ! Usage: $progname [-hV] patchlist
- ! -h : print this message and exit
- ! -V : print version number and exit
- ! EOM
- exit 1;
- }
-
- ***************
- *** 105,109 ****
- --- 112,118 ----
- !NO!SUBS!
- $grep -v '^;#' ../pl/package.pl >>patftp
- $grep -v '^;#' ../pl/rangeargs.pl >>patftp
- + $grep -v '^;#' ../pl/tilde.pl >>patftp
- + $grep -v '^;#' ../pl/profile.pl >>patftp
- chmod +x patftp
- $eunicefix patftp
-
- Index: mcon/U/Oldconfig.U
- Prereq: 3.0.1.1
- *** mcon/U/Oldconfig.U.old Mon Jan 24 15:34:50 1994
- --- mcon/U/Oldconfig.U Mon Jan 24 15:34:51 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: Oldconfig.U,v 3.0.1.1 1993/09/13 15:56:32 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: Oldconfig.U,v 3.0.1.2 1994/01/24 14:05:02 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,14 ****
- --- 9,18 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: Oldconfig.U,v $
- + ?RCS: Revision 3.0.1.2 1994/01/24 14:05:02 ram
- + ?RCS: patch16: added post-processing on myuname for Xenix targets
- + ?RCS: patch16: message proposing config.sh defaults made consistent
- + ?RCS:
- ?RCS: Revision 3.0.1.1 1993/09/13 15:56:32 ram
- ?RCS: patch10: force use of config.sh when -d option is used (WAD)
- ?RCS: patch10: complain about non-existent hint files (WAD)
- ***************
- *** 25,31 ****
- contains Loc Options
- ?MAKE: -pick wipe $@ %<
- ?S:myuname:
- ! ?S: The output of 'uname -a' if available, otherwise the hostname.
- ?S:.
- ?S:hint:
- ?S: Gives the type of hints used for previous answers. May be one of "default",
- --- 29,37 ----
- contains Loc Options
- ?MAKE: -pick wipe $@ %<
- ?S:myuname:
- ! ?S: The output of 'uname -a' if available, otherwise the hostname. On Xenix,
- ! ?S: pseudo variables assignments in the output are stripped, thank you. The
- ! ?S: whole thing is then lower-cased.
- ?S:.
- ?S:hint:
- ?S: Gives the type of hints used for previous answers. May be one of "default",
- ***************
- *** 41,46 ****
- --- 47,60 ----
- ?X: on some machines to avoid the error message when uname is not found; e.g.
- ?X: old SUN-OS 3.2 would not execute hostname in (uname -a || hostname). Sigh!
- myuname=`( ($uname -a) 2>/dev/null || hostname) 2>&1`
- + ?X: Special mention for Xenix, whose 'uname -a' gives us output like this:
- + ?X: sysname=XENIX
- + ?X: nodename=whatever
- + ?X: release=2.3.2 .. etc...
- + ?X: Therefore, we strip all this variable assignment junk and remove all the
- + ?X: new lines to keep the myuname variable sane... --RAM
- + myuname=`echo $myuname | $sed -e 's/^[^=]*=//' | \
- + tr '[A-Z]' '[a-z]' | tr '\012' ' '`
- dflt=n
- if test "$fastread" = yes; then
- dflt=y
- ***************
- *** 96,103 ****
- $test -f /bin/mips && /bin/mips && dflt="$dflt mips"
- $test -d /NextApps && test -f /usr/adm/software_version && dflt="$dflt next"
- $test -d /usr/include/minix && dflt="$dflt minix"
- if $test -f $uname; then
- ! set `$uname -a | tr '[A-Z]' '[a-z]'`
-
- $test -f $5.sh && dflt="$dflt $5"
-
- --- 110,120 ----
- $test -f /bin/mips && /bin/mips && dflt="$dflt mips"
- $test -d /NextApps && test -f /usr/adm/software_version && dflt="$dflt next"
- $test -d /usr/include/minix && dflt="$dflt minix"
- + ?X: If we have uname, we already computed a suitable uname -a output, correctly
- + ?X: formatted for Xenix, and it lies in $myuname.
- if $test -f $uname; then
- ! set X $myuname
- ! shift
-
- $test -f $5.sh && dflt="$dflt $5"
-
- ***************
- *** 197,203 ****
- hint=default
- if test -f ../config.sh; then
- echo " "
- ! rp="I see a config.sh file. Did Configure make it on THIS system?"
- . ./myread
- case "$ans" in
- n*|N*) echo "OK, I'll ignore it.";;
- --- 214,220 ----
- hint=default
- if test -f ../config.sh; then
- echo " "
- ! rp="I see a config.sh file. Shall I use it to set the defaults?"
- . ./myread
- case "$ans" in
- n*|N*) echo "OK, I'll ignore it.";;
-
- Index: mcon/pl/common.pl
- Prereq: 3.0.1.1
- *** mcon/pl/common.pl.old Mon Jan 24 15:35:13 1994
- --- mcon/pl/common.pl Mon Jan 24 15:35:13 1994
- ***************
- *** 1,4 ****
- ! ;# $Id: common.pl,v 3.0.1.1 1993/10/16 13:53:29 ram Exp $
- ;#
- ;# Copyright (c) 1991-1993, Raphael Manfredi
- ;#
- --- 1,4 ----
- ! ;# $Id: common.pl,v 3.0.1.2 1994/01/24 14:22:54 ram Exp $
- ;#
- ;# Copyright (c) 1991-1993, Raphael Manfredi
- ;#
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ;# of the source tree for dist 3.0.
- ;#
- ;# $Log: common.pl,v $
- + ;# Revision 3.0.1.2 1994/01/24 14:22:54 ram
- + ;# patch16: can now define "internal use only" variables on ?MAKE: lines
- + ;#
- ;# Revision 3.0.1.1 1993/10/16 13:53:29 ram
- ;# patch12: added support for ?M: lines and confmagic.h production
- ;#
- ***************
- *** 97,111 ****
- local($_) = @_;
- local(@ary); # Locally defined symbols
- local(@dep); # Dependencies
- ! if (/^[\w ]*:/) { # Main dependency rule
- s|^\s*||; # Remove leading spaces
- - $dependencies .= $_; # Append to already existing dependencies
- chop;
- s/:(.*)//;
- @dep = split(' ', $1); # Dependencies
- @ary = split(' '); # Locally defined symbols
- - $defined = join(' ', @ary); # Symbols defined by this unit
- foreach $sym (@ary) {
- # Only sumbols starting with a lowercase letter are to
- # appear in config.sh, excepted the ones listed in Except.
- if ($sym =~ /^[a-z]/ || $Except{$sym}) {
- --- 100,114 ----
- local($_) = @_;
- local(@ary); # Locally defined symbols
- local(@dep); # Dependencies
- ! if (/^[\w+ ]*:/) { # Main dependency rule
- s|^\s*||; # Remove leading spaces
- chop;
- s/:(.*)//;
- @dep = split(' ', $1); # Dependencies
- @ary = split(' '); # Locally defined symbols
- foreach $sym (@ary) {
- + # Symbols starting with a '+' are meant for internal use only.
- + next if $sym =~ s/^\+//;
- # Only sumbols starting with a lowercase letter are to
- # appear in config.sh, excepted the ones listed in Except.
- if ($sym =~ /^[a-z]/ || $Except{$sym}) {
- ***************
- *** 114,127 ****
- }
- }
- $condlist = ''; # List of conditional symbols
- ! foreach $sym (@dep) {
- ! if ($sym =~ /^\+[A-Za-z]/) {
- ! $sym =~ s|^\+||;
- $condlist .= "$sym ";
- push(@Cond, $sym) unless $condseen{$sym};
- $condseen{$sym}++; # Conditionally wanted
- }
- }
- $dependencies .= " -cond $condlist\n" if $condlist;
- } else {
- $dependencies .= $_; # Building rules
- --- 117,138 ----
- }
- }
- $condlist = ''; # List of conditional symbols
- ! local($sym); # Symbol copy, avoid @dep alteration
- ! foreach $dep (@dep) {
- ! if ($dep =~ /^\+[A-Za-z]/) {
- ! ($sym = $dep) =~ s|^\+||;
- $condlist .= "$sym ";
- push(@Cond, $sym) unless $condseen{$sym};
- $condseen{$sym}++; # Conditionally wanted
- }
- }
- + # Append to already existing dependencies. The 'defined' variable
- + # is set for &write_out, used to implement ?L: and ?I: canvas. It is
- + # reset each time a new unit is parsed.
- + # NB: leading '+' for defined symbols (internal use only) have been
- + # removed at this point, but conditional dependencies still bear it.
- + $defined = join(' ', @ary); # Symbols defined by this unit
- + $dependencies .= $defined . ':' . join(' ', @dep) . "\n";
- $dependencies .= " -cond $condlist\n" if $condlist;
- } else {
- $dependencies .= $_; # Building rules
-
- Index: mcon/U/errnolist.U
- *** mcon/U/errnolist.U.old Mon Jan 24 15:34:59 1994
- --- mcon/U/errnolist.U Mon Jan 24 15:34:59 1994
- ***************
- *** 0 ****
- --- 1,102 ----
- + ?RCS: $Id: errnolist.U,v 3.0.1.1 1994/01/24 14:10:54 ram Exp $
- + ?RCS:
- + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- + ?RCS:
- + ?RCS: You may redistribute only under the terms of the Artistic Licence,
- + ?RCS: as specified in the README file that comes with the distribution.
- + ?RCS: You may reuse parts of this distribution only within the terms of
- + ?RCS: that same Artistic Licence; a copy of which may be found at the root
- + ?RCS: of the source tree for dist 3.0.
- + ?RCS:
- + ?RCS: $Log: errnolist.U,v $
- + ?RCS: Revision 3.0.1.1 1994/01/24 14:10:54 ram
- + ?RCS: patch16: created
- + ?RCS:
- + ?MAKE:errnolist errnolist_SH errnolist_a errnolist_c errnolist_o: cat +cc \
- + +ccflags +libs +d_sysernlst
- + ?MAKE: -pick add $@ %<
- + ?S:errnolist:
- + ?S: This variable holds the base name of a file containing the
- + ?S: definition of the sys_errnolist array, if the C library
- + ?S: doesn't provide it already. Otherwise, its value is empty.
- + ?S: The following lines should be included in your Makefile.SH:
- + ?S:
- + ?S: case "$errnolist" in
- + ?S: '') ;;
- + ?S: *)
- + ?S: $spitshell >>Makefile <<!GROK!THIS!
- + ?S: $errnolist_c: $errnolist_SH $errnolist_a
- + ?S: sh ./$errnolist_SH
- + ?S:
- + ?S: !GROK!THIS!
- + ?S: ;;
- + ?S: esac
- + ?S:
- + ?S: You may define the 'errnolist' variable in your Myinit.U if you
- + ?S: wish to override its default value "errnolist".
- + ?S:.
- + ?S:errnolist_SH:
- + ?S: This is the name of a file which will generate errnolistc.
- + ?S:.
- + ?S:errnolist_a:
- + ?S: This is the name of the awk script called by errnolist_SH.
- + ?S:.
- + ?S:errnolist_c:
- + ?S: This is the name of a generated C file which provides the
- + ?S: definition of the sys_errnolist array.
- + ?S:.
- + ?S:errnolist_o:
- + ?S: This is the name of the object file which provides the
- + ?S: definition of the sys_errnolist array, if the C library
- + ?S: doesn't provide it already. Otherwise, its value is empty.
- + ?S:.
- + ?INIT:errnolist=errnolist
- + : check for sys_errnolist
- + @if d_sysernlst || HAS_SYS_ERRNOLIST
- + case "$d_sysernlst" in
- + "$define")
- + errnolist=''
- + errnolist_SH=''
- + errnolist_a=''
- + errnolist_c=''
- + errnolist_o=''
- + ;;
- + *)
- + echo " "
- + echo "I'll make sure your Makefile provides sys_errnolist in $errnolist.c"
- + errnolist_SH=$errnolist.SH
- + errnolist_a=$errnolist.a
- + errnolist_c=$errnolist.c
- + errnolist_o=$errnolist.o
- + ;;
- + esac
- + @else
- + echo " "
- + $cat <<EOM
- + Checking to see if your C library provides us with sys_errnolist[]...
- + EOM
- + $cat >errnolist.c <<'EOCP'
- + extern char *sys_errnolist[];
- + main() {
- + char *p0 = sys_errnolist[0];
- + char *p1 = sys_errnolist[1];
- +
- + return (p0 == p1); /* Make sure they're not optimized away */
- + }
- + EOCP
- + if $cc $ccflags -o errnolist errnolist.c $libs >/dev/null 2>&1 ; then
- + echo "It does."
- + errnolist=''
- + errnolist_SH=''
- + errnolist_a=''
- + errnolist_c=''
- + errnolist_o=''
- + else
- + echo "I'll make sure your Makefile provides sys_errnolist in $errnolist.c"
- + errnolist_SH=$errnolist.SH
- + errnolist_a=$errnolist.a
- + errnolist_c=$errnolist.c
- + errnolist_o=$errnolist.o
- + fi
- + @end
- +
-
- Index: mcon/U/MailList.U
- *** mcon/U/MailList.U.old Mon Jan 24 15:34:50 1994
- --- mcon/U/MailList.U Mon Jan 24 15:34:50 1994
- ***************
- *** 0 ****
- --- 1,82 ----
- + ?RCS: $Id: MailList.U,v 3.0.1.1 1994/01/24 14:01:49 ram Exp $
- + ?RCS:
- + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- + ?RCS:
- + ?RCS: You may redistribute only under the terms of the Artistic Licence,
- + ?RCS: as specified in the README file that comes with the distribution.
- + ?RCS: You may reuse parts of this distribution only within the terms of
- + ?RCS: that same Artistic Licence; a copy of which may be found at the root
- + ?RCS: of the source tree for dist 3.0.
- + ?RCS:
- + ?RCS: Original Author: Graham Stoney <greyham@research.canon.oz.au>
- + ?RCS:
- + ?RCS: $Log: MailList.U,v $
- + ?RCS: Revision 3.0.1.1 1994/01/24 14:01:49 ram
- + ?RCS: patch16: created
- + ?RCS:
- + ?RCS:
- + ?X:
- + ?X: This unit offers the user the option of subscribing to the mailing
- + ?X: list. To force inclusion of this unit, you must add it's name to the
- + ?X: dependancies on the MAKE line in your private copy of End.U.
- + ?X: The address of the mailing list server must be set via a "list_request=..."
- + ?X: entry in the .package file. This is usually done by running packinit and
- + ?X: answering the proper questions.
- + ?X:
- + ?MAKE:MailList: cat mailer package Myread cf_name cf_email
- + ?MAKE: -pick wipe $@ %<
- + ?T:list_request list_sub list_unsub list_name
- + ?X:
- + ?X: The cf_name dependency is used through list_sub when the mailing list
- + ?X: manager happens to be listserv, whereas cf_email is used whith majordomo
- + ?X: or when the mailing list request address is scanned by a human. Since
- + ?X: they do not appear within the unit itself, we need a lint hint.
- + ?X:
- + ?LINT:use cf_name cf_email
- + : offer to join the mailing list
- + list_request='<$list_request>'
- + list_sub="<$list_sub>"
- + list_unsub="<$list_unsub>"
- + list_name="<$list_name>"
- + $cat <<EOM
- +
- + There is a mailing list for discussion about $package and related issues.
- + This is the preferred place to ask questions about the program and discuss
- + modifications and additions with the author and other users. If you are able
- + to send mail to the Internet, you are encouraged to subscribe. You need only
- + ever subscribe once, and you can unsubscribe automatically at any time in the
- + future. If you have already subscribed and you wish to unsubscribe now, you
- + may do so by answering "unsubscribe". Answer "subscribe" to subscribe to the
- + list.
- +
- + EOM
- + rp="Subscribe to or unsubscribe from the $list_name mailing list?"
- + dflt=neither
- + . ./myread
- + case "$ans" in
- + [sS]*) $cat <<EOM
- +
- + You will be sent a message from the list server to let you know when your
- + subscription has been successful and telling you how to submit articles and
- + how to unsubscribe again when necessary. You may also unsubscribe by running
- + this script again and asking it to do so for you.
- +
- + EOM
- + echo "Sending mail to subscribe you to the $list_name list..." >&4
- + $mailer $list_request <<EOM >/dev/null 2>&1
- + Precedence: junk
- + To: $list_request
- +
- + $list_sub
- + EOM
- + ;;
- + [uU]*) echo "Sending mail to unsubscribe you from the $list_name list..." >&4
- + $mailer $list_request <<EOM >/dev/null 2>&1
- + Precedence: junk
- + To: $list_request
- +
- + $list_unsub
- + EOM
- + ;;
- + esac
- +
-
- Index: mcon/man/mlint.SH
- Prereq: 3.0.1.3
- *** mcon/man/mlint.SH.old Mon Jan 24 15:35:10 1994
- --- mcon/man/mlint.SH Mon Jan 24 15:35:11 1994
- ***************
- *** 20,26 ****
- .TH METACONFIG $manext "Version $VERSION PL$PATCHLEVEL"
- ''' @(#) Manual page for metalint
- '''
- ! ''' $Id: mlint.SH,v 3.0.1.3 1993/11/10 17:37:39 ram Exp $
- '''
- ''' Copyright (c) 1991-1993, Raphael Manfredi
- '''
- --- 20,26 ----
- .TH METACONFIG $manext "Version $VERSION PL$PATCHLEVEL"
- ''' @(#) Manual page for metalint
- '''
- ! ''' $Id: mlint.SH,v 3.0.1.4 1994/01/24 14:20:39 ram Exp $
- '''
- ''' Copyright (c) 1991-1993, Raphael Manfredi
- '''
- ***************
- *** 31,36 ****
- --- 31,39 ----
- ''' of the source tree for dist 3.0.
- '''
- ''' $Log: mlint.SH,v $
- + ''' Revision 3.0.1.4 1994/01/24 14:20:39 ram
- + ''' patch16: can now easily suppress warning about made "special units"
- + '''
- ''' Revision 3.0.1.3 1993/11/10 17:37:39 ram
- ''' patch14: documents stale ?M: dependency check
- '''
- ***************
- *** 90,96 ****
- .TP
- "(?MAKE) special unit 'Xxx' should not be listed as made."
- A special unit symbol (first letter capitalized) may only be listed as made
- ! in the special unit itself.
- .TP
- "(?MAKE) '+xxx' is listed x times."
- A conditional dependency is listed more than once. This is harmless though.
- --- 93,102 ----
- .TP
- "(?MAKE) special unit 'Xxx' should not be listed as made."
- A special unit symbol (first letter capitalized) may only be listed as made
- ! in the special unit itself. To suppress this warning in legitimate cases,
- ! add a '+' in front of the offending symbol (note that for non-special units,
- ! the '+' in this position indicates an internal symbol which should not appear
- ! in the config.sh file).
- .TP
- "(?MAKE) '+xxx' is listed x times."
- A conditional dependency is listed more than once. This is harmless though.
-
- Index: mcon/mlint.SH
- Prereq: 3.0.1.1
- *** mcon/mlint.SH.old Mon Jan 24 15:35:12 1994
- --- mcon/mlint.SH Mon Jan 24 15:35:12 1994
- ***************
- *** 20,26 ****
- eval "exec perl -S \$0 \$*"
- if \$running_under_some_shell;
-
- ! # $Id: mlint.SH,v 3.0.1.1 1993/08/19 06:42:27 ram Exp $
- #
- # Copyright (c) 1991-1993, Raphael Manfredi
- #
- --- 20,26 ----
- eval "exec perl -S \$0 \$*"
- if \$running_under_some_shell;
-
- ! # $Id: mlint.SH,v 3.0.1.2 1994/01/24 14:21:00 ram Exp $
- #
- # Copyright (c) 1991-1993, Raphael Manfredi
- #
- ***************
- *** 33,38 ****
- --- 33,41 ----
- # Original Author: Harlan Stenn <harlan@mumps.pfcs.com>
- #
- # $Log: mlint.SH,v $
- + # Revision 3.0.1.2 1994/01/24 14:21:00 ram
- + # patch16: added ~/.dist_profile awareness
- + #
- # Revision 3.0.1.1 1993/08/19 06:42:27 ram
- # patch1: leading config.sh searching was not aborting properly
- #
- ***************
- *** 56,61 ****
- --- 59,65 ----
- chop($MC = `pwd`); # Real metalint lib path (no symbolic links)
- chdir $WD || die "Can't chdir back to $WD: $!\n";
-
- + &profile; # Read ~/.dist_profile
- require 'getopts.pl';
- &usage unless &Getopts("hklV");
-
- ***************
- *** 123,127 ****
- --- 127,132 ----
- $grep -v '^;#' pl/obsolete.pl >>mlint
- $grep -v '^;#' pl/tsort.pl >>mlint
- $grep -v '^;#' ../pl/tilde.pl >>mlint
- + $grep -v '^;#' ../pl/profile.pl >>mlint
- chmod +x mlint
- $eunicefix mlint
-
- Index: bin/packinit.man
- Prereq: 3.0
- *** bin/packinit.man.old Mon Jan 24 15:34:33 1994
- --- bin/packinit.man Mon Jan 24 15:34:33 1994
- ***************
- *** 1,4 ****
- ! ''' $Id: packinit.man,v 3.0 1993/08/18 12:04:06 ram Exp $
- '''
- ''' Copyright (c) 1991-1993, Raphael Manfredi
- '''
- --- 1,4 ----
- ! ''' $Id: packinit.man,v 3.0.1.1 1994/01/24 13:54:31 ram Exp $
- '''
- ''' Copyright (c) 1991-1993, Raphael Manfredi
- '''
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ''' of the source tree for dist 3.0.
- '''
- ''' $Log: packinit.man,v $
- + ''' Revision 3.0.1.1 1994/01/24 13:54:31 ram
- + ''' patch16: now documents variables set in .package by packinit
- + '''
- ''' Revision 3.0 1993/08/18 12:04:06 ram
- ''' Baseline for dist 3.0 netwide release.
- '''
- ***************
- *** 32,37 ****
- --- 35,114 ----
- .I Packinit
- will create a single file and leave the remaining of
- your directory undisturbed.
- + .SH VARIABLES
- + .I Packinit
- + defines the following variables in your \fI.package\fR file:
- + .TP 15
- + .PD 0
- + baserev
- + The baseline revision number.
- + .TP
- + copyright
- + Name of the file used for Copyright expansion.
- + .TP
- + ftpdir
- + Directory where patches are located on the FTP site.
- + .TP
- + ftpsite
- + Name of the FTP site where patches may be retrieved from.
- + .TP
- + list_addr
- + Address of the package mailing list where users may post messages to.
- + .TP
- + list_manager
- + Type of list manager attached to the list administrative request address.
- + .TP
- + list_name
- + Name of the package users mailing list.
- + .TP
- + list_request
- + Address where subscribe and unsubscribe requests for the package mailing
- + list should be sent to.
- + .TP
- + list_sub
- + Format of the subscribe requests.
- + .TP
- + list_unsub
- + Format of the unsubscribe requests.
- + .TP
- + list_users
- + A boolean string set to 'true' when there is a mailing list set up for
- + discussion about the package.
- + .TP
- + mailagent
- + A boolean string set to 'true' when people are allowed to retrieve
- + patches via mailagent \fI@SH mailpatch\fR commands.
- + .TP
- + maintloc
- + E-mail address of the package maintainer, preferably in Internet format.
- + .TP
- + maintname
- + Full name of the package maintainer.
- + .TP
- + mydiff
- + Name of the \fIdiff\fR program to be used when computing a patch.
- + .TP
- + newsgroups
- + Newsgroup list where new patches should be posted to, empty for no
- + postings.
- + .TP
- + orgname
- + Full name of the organization where the package maitainer resides, or
- + path to a file containing that name.
- + .TP
- + package
- + Name of the package.
- + .TP
- + packver
- + Version of the \fIpackinit\fR program that built the \fI.package\fR file.
- + .TP
- + patchbranch
- + Name of the RCS branch used to store subsequent updates of a file after
- + a baseline has been released.
- + .TP
- + recipients
- + People who should be sent newly issued patches.
- + .PD
- .SH FILE
- .TP 15
- \&.package
-
- Index: mcon/U/sbrksmart.U
- *** mcon/U/sbrksmart.U.old Mon Jan 24 15:35:07 1994
- --- mcon/U/sbrksmart.U Mon Jan 24 15:35:07 1994
- ***************
- *** 0 ****
- --- 1,79 ----
- + ?RCS: $Id: sbrksmart.U,v 3.0.1.1 1994/01/24 14:16:45 ram Exp $
- + ?RCS:
- + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- + ?RCS:
- + ?RCS: You may redistribute only under the terms of the Artistic Licence,
- + ?RCS: as specified in the README file that comes with the distribution.
- + ?RCS: You may reuse parts of this distribution only within the terms of
- + ?RCS: that same Artistic Licence; a copy of which may be found at the root
- + ?RCS: of the source tree for dist 3.0.
- + ?RCS:
- + ?RCS: $Log: sbrksmart.U,v $
- + ?RCS: Revision 3.0.1.1 1994/01/24 14:16:45 ram
- + ?RCS: patch16: created
- + ?RCS:
- + ?MAKE:sbrksmart: cat d_sbrk +cc +ccflags +libs rm
- + ?MAKE: -pick add $@ %<
- + ?S:sbrksmart:
- + ?S: This variable conditionally defines HAS_SMART_SBRK if the sbrk()
- + ?S: routine honors a negative argument to lower the break value.
- + ?S:.
- + ?C:HAS_SMART_SBRK:
- + ?C: This symbol is defined when the sbrk() system call may be used with
- + ?C: a negative argument to lower the break value, therefore releasing
- + ?C: core to the system. If not, you'd probably be better off using the
- + ?C: mmap() system call.
- + ?C:.
- + ?H:#$sbrksmart HAS_SMART_SBRK /**/
- + ?H:.
- + ?T:dumb
- + : see if sbrk can release core to the kernel
- + echo " "
- + case "$d_sbrk" in
- + "$define")
- + echo "Let's see if your sbrk() is smart enough to release core..." >&4
- + $cat > sbrk.c <<'EOC'
- + #define INC 256 /* Small enough to be less than a page size */
- +
- + main()
- + {
- + char *obrk = (char *) sbrk(0);
- + char *nbrk;
- +
- + nbrk = (char *) sbrk(INC);
- + if (nbrk == (char *) -1)
- + exit(1); /* Not enough memory */
- + if (nbrk != obrk)
- + exit(2); /* Unreliable sbrk() */
- + nbrk = sbrk(-INC);
- + if (nbrk == (char *) -1)
- + exit(3); /* May have understood negative arg as huge positive */
- + if (obrk != (char *) sbrk(0))
- + exit(4); /* Not smart, definitely */
- +
- + exit(0); /* Ok */
- + }
- + EOC
- + sbrksmart="$undef"
- + dumb='-- assuming dumb sbrk().'
- + if $cc $ccflags -o sbrk sbrk.c $libs >/dev/null 2>&1; then
- + ./sbrk >/dev/null 2>&1
- + case $? in
- + 0) sbrksmart="$define"
- + echo "Yes, it can be used with negative values." ;;
- + 1) echo "Sorry, not enough memory $dumb" ;;
- + 2) echo "No it's not, and besides it seems to be buggy..." ;;
- + 3) echo "No, it fails with negative values." ;;
- + 4) echo "Nope, your sbrk() is too dumb." ;;
- + *) echo "Err... Unexpected result $dumb" ;;
- + esac
- + else
- + echo "(Could not compile test program $dumb)"
- + fi
- + ;;
- + *)
- + echo "Since you don't have sbrk(), let's forget about the smart test!"
- + ;;
- + esac
- + $rm -f sbrk sbrk.* core
- +
-
- Index: pat/patsnap.SH
- Prereq: 3.0.1.1
- *** pat/patsnap.SH.old Mon Jan 24 15:35:25 1994
- --- pat/patsnap.SH Mon Jan 24 15:35:25 1994
- ***************
- *** 20,26 ****
- eval "exec perl -S \$0 \$*"
- if \$running_under_some_shell;
-
- ! # $Id: patsnap.SH,v 3.0.1.1 1993/08/24 12:22:08 ram Exp $
- #
- # Copyright (c) 1991-1993, Raphael Manfredi
- #
- --- 20,26 ----
- eval "exec perl -S \$0 \$*"
- if \$running_under_some_shell;
-
- ! # $Id: patsnap.SH,v 3.0.1.2 1994/01/24 14:33:08 ram Exp $
- #
- # Copyright (c) 1991-1993, Raphael Manfredi
- #
- ***************
- *** 31,36 ****
- --- 31,40 ----
- # of the source tree for dist 3.0.
- #
- # $Log: patsnap.SH,v $
- + # Revision 3.0.1.2 1994/01/24 14:33:08 ram
- + # patch16: now prefix error messages with program's name
- + # patch16: added ~/.dist_profile awareness
- + #
- # Revision 3.0.1.1 1993/08/24 12:22:08 ram
- # patch3: created
- #
- ***************
- *** 40,47 ****
- !GROK!THIS!
- cat >>patsnap <<'!NO!SUBS!'
-
- ! $progname = 'patsnap'; # My name
- !
- require 'getopts.pl';
- &usage unless $#ARGV >= 0;
- &usage unless &Getopts("aho:V");
- --- 44,50 ----
- !GROK!THIS!
- cat >>patsnap <<'!NO!SUBS!'
-
- ! $progname = &profile; # Read ~/.dist_profile
- require 'getopts.pl';
- &usage unless $#ARGV >= 0;
- &usage unless &Getopts("aho:V");
- ***************
- *** 62,68 ****
- $SNAPSHOT = $opt_o if $opt_o;
-
- if ($opt_a) {
- ! open(MANI,"MANIFEST.new") || die "No MANIFEST.new found.\n";
- @ARGV = ();
- while (<MANI>) {
- chop;
- --- 65,71 ----
- $SNAPSHOT = $opt_o if $opt_o;
-
- if ($opt_a) {
- ! open(MANI,"MANIFEST.new") || die "$progname: can't read MANIFEST.new: $!\n";
- @ARGV = ();
- while (<MANI>) {
- chop;
- ***************
- *** 88,99 ****
- next;
- }
- elsif ($revs == 1) {
- ! print "Last revision for $file is $baserev.\n";
- print SNAPSHOT "$file\t$baserev\n";
- }
- else {
- ($lastrev) = ($rlog =~ /revision $revbranch\.(\d+)/);
- ! print "Last revision for $file is $revbranch.$lastrev.\n";
- print SNAPSHOT "$file\t$revbranch.$lastrev\n";
- }
- }
- --- 91,102 ----
- next;
- }
- elsif ($revs == 1) {
- ! print "$progname: last revision for $file is $baserev.\n";
- print SNAPSHOT "$file\t$baserev\n";
- }
- else {
- ($lastrev) = ($rlog =~ /revision $revbranch\.(\d+)/);
- ! print "$progname: last revision for $file is $revbranch.$lastrev.\n";
- print SNAPSHOT "$file\t$revbranch.$lastrev\n";
- }
- }
- ***************
- *** 115,119 ****
- --- 118,124 ----
- $grep -v '^;#' ../pl/package.pl >>patsnap
- $grep -v '^;#' ../pl/rcsargs.pl >>patsnap
- $grep -v '^;#' ../pl/comment.pl >>patsnap
- + $grep -v '^;#' ../pl/tilde.pl >>patsnap
- + $grep -v '^;#' ../pl/profile.pl >>patsnap
- chmod +x patsnap
- $eunicefix patsnap
-
- Index: mcon/U/libflex.U
- Prereq: 3.0
- *** mcon/U/libflex.U.old Mon Jan 24 15:35:02 1994
- --- mcon/U/libflex.U Mon Jan 24 15:35:02 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: libflex.U,v 3.0 1993/08/18 12:08:59 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 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:
- ***************
- *** 9,32 ****
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: libflex.U,v $
- ?RCS: Revision 3.0 1993/08/18 12:08:59 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:libflex: test Loc flex libpth
- ?MAKE: -pick add $@ %<
- ?S:libflex:
- ?S: This variable contains the argument to pass to the loader in order
- ! ?S: to get the flex library routines. If there is no flex or flex
- ?S: library, it is null.
- ?S:.
- ?T:xxx
- - ?O: use libswanted='-lfl' instead (see libs.U)
- : see if we should include -lfl
- echo " "
- ! case "$flex" in
- ! */flex)
- if $test -r /usr/lib/libfl.a || $test -r /usr/local/lib/libfl.a ; then
- echo "-lfl found." >&4
- else
- xxx=`./loc libfl.a x $libpth`
- case "$xxx" in
- --- 9,35 ----
- ?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
- ! ?S: to get the flex/lex library routines. If there is no flex or flex
- ?S: library, it is null.
- ?S:.
- ?T:xxx
- : see if we should include -lfl
- 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
- ***************
- *** 40,47 ****
- ;;
- esac
- fi
- *)
- ! echo "You don't seem to have flex, so I won't look for the flex library." >&4
- ;;
- esac
-
- --- 43,69 ----
- ;;
- 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
- ;;
- esac
-
-
- Index: mcon/U/vaproto.U
- Prereq: 3.0
- *** mcon/U/vaproto.U.old Mon Jan 24 15:35:07 1994
- --- mcon/U/vaproto.U Mon Jan 24 15:35:07 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: vaproto.U,v 3.0 1993/08/18 12:09:59 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: vaproto.U,v 3.0.1.1 1994/01/24 14:17:16 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 11,16 ****
- --- 11,19 ----
- ?RCS: Orginal Author: Graham Stoney <greyham@research.canon.oz.au>
- ?RCS:
- ?RCS: $Log: vaproto.U,v $
- + ?RCS: Revision 3.0.1.1 1994/01/24 14:17:16 ram
- + ?RCS: patch16: definition of _V now appears only when needed
- + ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:09:59 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ***************
- *** 25,31 ****
- ?C: This variable is defined on systems supporting prototype declaration
- ?C: of functions with a variable number of arguments.
- ?C:.
- ! ?C:_V ~ %<:
- ?C: This macro is used to declare function parameters in prototypes for
- ?C: functions with a variable number of parameters. Use double parentheses.
- ?C: For example:
- --- 28,34 ----
- ?C: This variable is defined on systems supporting prototype declaration
- ?C: of functions with a variable number of arguments.
- ?C:.
- ! ?C:_V:
- ?C: This macro is used to declare function parameters in prototypes for
- ?C: functions with a variable number of parameters. Use double parentheses.
- ?C: For example:
- ***************
- *** 37,47 ****
- ?C: have a non-effect _V() macro and still get prototypes via _().
- ?C:.
- ?H:?%<:#$vaproto CAN_VAPROTO /**/
- ! ?H:?%<:#ifdef CAN_VAPROTO
- ! ?H:?%<:#define _V(args) args
- ! ?H:?%<:#else
- ! ?H:?%<:#define _V(args) ()
- ! ?H:?%<:#endif
- ?H:.
- ?W:%<:_V
- ?LINT:set vaproto
- --- 40,50 ----
- ?C: have a non-effect _V() macro and still get prototypes via _().
- ?C:.
- ?H:?%<:#$vaproto CAN_VAPROTO /**/
- ! ?H:?_V:#ifdef CAN_VAPROTO
- ! ?H:?_V:#define _V(args) args
- ! ?H:?_V:#else
- ! ?H:?_V:#define _V(args) ()
- ! ?H:?_V:#endif
- ?H:.
- ?W:%<:_V
- ?LINT:set vaproto
- ***************
- *** 49,59 ****
- echo " "
- case "$prototype$i_stdarg" in
- $define$define)
- ! echo "It appears we'll be able to prototype varargs functions."
- val="$define"
- ;;
- *)
- ! echo "Too bad... We won't be using prototyped varargs functions..."
- val="$undef"
- ;;
- esac
- --- 52,62 ----
- echo " "
- case "$prototype$i_stdarg" in
- $define$define)
- ! echo "It appears we'll be able to prototype varargs functions." >&4
- val="$define"
- ;;
- *)
- ! echo "Too bad... We won't be using prototyped varargs functions..." >&4
- val="$undef"
- ;;
- esac
-
- Index: kit/makedist.SH
- Prereq: 3.0.1.1
- *** kit/makedist.SH.old Mon Jan 24 15:34:37 1994
- --- kit/makedist.SH Mon Jan 24 15:34:37 1994
- ***************
- *** 17,23 ****
- eval "exec perl -S \$0 \$*"
- if \$running_under_some_shell;
-
- ! # $Id: makedist.SH,v 3.0.1.1 1993/08/19 06:42:17 ram Exp $
- #
- # Copyright (c) 1991-1993, Raphael Manfredi
- #
- --- 17,23 ----
- eval "exec perl -S \$0 \$*"
- if \$running_under_some_shell;
-
- ! # $Id: makedist.SH,v 3.0.1.2 1994/01/24 13:58:20 ram Exp $
- #
- # Copyright (c) 1991-1993, Raphael Manfredi
- #
- ***************
- *** 28,33 ****
- --- 28,38 ----
- # of the source tree for dist 3.0.
- #
- # $Log: makedist.SH,v $
- + # Revision 3.0.1.2 1994/01/24 13:58:20 ram
- + # patch16: modified call to manifake to trap exceptions manually
- + # patch16: removed final sed post-processing to allow 'make depend' target
- + # patch16: added ~/.dist_profile awareness
- + #
- # Revision 3.0.1.1 1993/08/19 06:42:17 ram
- # patch1: leading config.sh searching was not aborting properly
- #
- ***************
- *** 40,48 ****
- --- 45,56 ----
- !GROK!THIS!
- $spitshell >>makedist <<'!NO!SUBS!'
-
- + &profile; # Read ~/.dist_profile
- require 'getopts.pl';
- &usage unless &Getopts('c:f:dhvqs:V');
-
- + $ENV{'DIST'} = '/dev/null'; # Disable ~/.dist_profile
- +
- if ($opt_V) {
- print STDERR "makedist $version PL$patchlevel\n";
- exit 0;
- ***************
- *** 67,74 ****
-
- &readpackage;
- &get_patchlevel;
- - &manifake;
-
- if ($opt_c) { # Copy distribution only, no shell archive
- &distcopy;
- exit 0;
- --- 75,87 ----
-
- &readpackage;
- &get_patchlevel;
-
- + eval '&manifake'; # Want to trap possible die and redirect to fatal
- + if ($@ ne '') {
- + chop($@);
- + &fatal($@);
- + }
- +
- if ($opt_c) { # Copy distribution only, no shell archive
- &distcopy;
- exit 0;
- ***************
- *** 438,446 ****
-
- !NO!SUBS!
- $grep -v '^;#' ../pl/package.pl >>makedist
- ! $grep -v '^;#' ../pl/manifake.pl | \
- ! $sed -e 's|die \(.*\);|do fatal(\1);|' >>makedist
- $grep -v '^;#' ../pl/copyright.pl >>makedist
- $grep -v '^;#' ../pl/makedir.pl >>makedist
- chmod +x makedist
- $eunicefix makedist
- --- 451,460 ----
-
- !NO!SUBS!
- $grep -v '^;#' ../pl/package.pl >>makedist
- ! $grep -v '^;#' ../pl/manifake.pl >>makedist
- $grep -v '^;#' ../pl/copyright.pl >>makedist
- $grep -v '^;#' ../pl/makedir.pl >>makedist
- + $grep -v '^;#' ../pl/tilde.pl >>makedist
- + $grep -v '^;#' ../pl/profile.pl >>makedist
- chmod +x makedist
- $eunicefix makedist
-
- Index: mcon/U/libyacc.U
- Prereq: 3.0
- *** mcon/U/libyacc.U.old Mon Jan 24 15:35:03 1994
- --- mcon/U/libyacc.U Mon Jan 24 15:35:03 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: libyacc.U,v 3.0 1993/08/18 12:09:04 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 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:
- ***************
- *** 9,18 ****
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: libyacc.U,v $
- ?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
- --- 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
- ***************
- *** 20,43 ****
- ?S: library, it is null.
- ?S:.
- ?T:xxx
- - ?O: use libswanted='-ly' instead (see libs.U)
- : see if we should include -ly
- 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
- libyacc=''
- ;;
- --- 23,50 ----
- ?S: library, it is null.
- ?S:.
- ?T:xxx
- : see if we should include -ly
- 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
- libyacc=''
- ;;
-
- Index: mcon/U/d_strerror.U
- Prereq: 3.0
- *** mcon/U/d_strerror.U.old Mon Jan 24 15:34:57 1994
- --- mcon/U/d_strerror.U Mon Jan 24 15:34:57 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: d_strerror.U,v 3.0 1993/08/18 12:07:35 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 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:
- ***************
- *** 9,14 ****
- --- 9,18 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: d_strerror.U,v $
- + ?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
- + ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:07:35 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ***************
- *** 32,38 ****
- ?S:.
- ?C:HAS_STRERROR (STRERROR):
- ?C: This symbol, if defined, indicates that the strerror routine is
- ! ?C: available to translate error numbers to strings.
- ?C:.
- ?C:HAS_SYS_ERRLIST (SYSERRLIST):
- ?C: This symbol, if defined, indicates that the sys_errlist array is
- --- 36,43 ----
- ?S:.
- ?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
- ***************
- *** 54,59 ****
- --- 59,65 ----
- ?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
- : see if strerror and/or sys_errlist[] exist
- echo " "
- ***************
- *** 91,96 ****
- --- 97,103 ----
- d_syserrlst="$undef"
- d_strerrm="$undef"
- fi
- + @if d_sysernlst || HAS_SYS_ERRNOLIST
- if set sys_errnolist val -a d_sysernlst; eval $csym; $val; then
- echo "(Symbolic error codes can be fetched via the sys_errnolist[] array.)"
- d_sysernlst="$define"
- ***************
- *** 98,101 ****
- --- 105,109 ----
- echo "(However, I can't extract the symbolic error code out of errno.)"
- d_sysernlst="$undef"
- fi
- + @end
-
-
- Index: mcon/U/cf_name.U
- *** mcon/U/cf_name.U.old Mon Jan 24 15:34:52 1994
- --- mcon/U/cf_name.U Mon Jan 24 15:34:52 1994
- ***************
- *** 0 ****
- --- 1,68 ----
- + ?RCS: $Id: cf_name.U,v 3.0.1.1 1994/01/24 14:05:11 ram Exp $
- + ?RCS:
- + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- + ?RCS:
- + ?RCS: You may redistribute only under the terms of the Artistic Licence,
- + ?RCS: as specified in the README file that comes with the distribution.
- + ?RCS: You may reuse parts of this distribution only within the terms of
- + ?RCS: that same Artistic Licence; a copy of which may be found at the root
- + ?RCS: of the source tree for dist 3.0.
- + ?RCS:
- + ?RCS: Original Author: Graham Stoney <greyham@research.canon.oz.au>
- + ?RCS:
- + ?RCS: $Log: cf_name.U,v $
- + ?RCS: Revision 3.0.1.1 1994/01/24 14:05:11 ram
- + ?RCS: patch16: created
- + ?RCS:
- + ?RCS:
- + ?MAKE:+cf_name: cf_by passcat Filexp nametype cat
- + ?MAKE: -pick add $@ %<
- + ?S:cf_name:
- + ?S: Full name of the person who ran the Configure script and answered the
- + ?S: questions. This can be used by units that require the user's full name.
- + ?S: This variable is for internal use only.
- + ?S:.
- + ?T:xxx fn NAME
- + : figure out their full name
- + case "$NAME" in
- + '') case "$nametype" in
- + other)
- + fn=`./filexp ~/.fullname`
- + xxx=usg
- + $test -f $fn && xxx=other
- + ;;
- + *)
- + xxx="$nametype"
- + ;;
- + esac
- +
- + case "$xxx" in
- + bsd)
- + cf_name=`$passcat | grep "^$cf_by:" | \
- + sed -e 's/^[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\):.*/\1/'`
- + ;;
- + usg)
- + cf_name=`$passcat | grep "^$cf_by:" | \
- + sed -e 's/^[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\):.*/\1/' \
- + -e 's/[^-]*-\(.*\)(.*)/\1/'`
- + ;;
- + *)
- + cf_name=`$cat $fn`
- + ;;
- + esac
- + ;;
- + *)
- + cf_name="$NAME"
- + ;;
- + esac
- + ?X:
- + ?X: In the original unit, Graham asked for the user name, in case the above
- + ?X: code was unable to figure it out correctly. Since now cf_name has been
- + ?X: made an internal variable only (i.e. it is not saved in config.sh), letting
- + ?X: the user override the computed default each time would be a pain.
- + ?X: Therefore, I have decided to trust the above code to get it right, and for
- + ?X: those rare cases where it will fail, too bad :-) --RAM.
- + ?X:
- + echo " "
- + echo "Pleased to meet you, $cf_name."
- +
-
- *** End of Patch 20 ***
-
- exit 0 # Just in case...
-