home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume16
/
dist2
/
part07
< prev
next >
Wrap
Text File
|
1988-10-16
|
4KB
|
139 lines
Subject: v16i040: Larry Wall's Configure generator, etc., Part07/07
Newsgroups: comp.sources.unix
Sender: sources
Approved: rsalz@uunet.UU.NET
Submitted-by: lwall@jpl-devvax.jpl.nasa.gov (Larry Wall)
Posting-number: Volume 16, Issue 40
Archive-name: dist2/part07
#! /bin/sh
# Make a new directory for the dist sources, cd to it, and run kits 1
# thru 7 through sh. When all 7 kits have been run, read README.
echo "This is dist 2.0 kit 7 (of 7). If kit 7 is complete, the line"
echo '"'"End of kit 7 (of 7)"'" will echo at the end.'
echo ""
export PATH || (echo "You didn't use sh, you clunch." ; kill $$)
mkdir mcon mcon/U pat 2>/dev/null
echo Extracting mcon/U/Myinit.U
sed >mcon/U/Myinit.U <<'!STUFFY!FUNK!' -e 's/X//'
X?RCS:$Header: Myinit.U,v 2.0 88/06/28 23:13:33 lwall Locked $
X?X:
X?X: If you want to initialize any default values, copy this unit to your
X?X: personal U directory and add the assignments to the end. This file
X?X: is included after variables are initialized but before any old
X?X: config.sh file is read in.
X?X:
X?RCS: $Log: Myinit.U,v $
X?RCS: Revision 2.0 88/06/28 23:13:33 lwall
X?RCS: Baseline.
X?RCS:
X?MAKE:Myinit: Init
X?MAKE: -pick add $@ %*
X
!STUFFY!FUNK!
echo Extracting mcon/U/package.U
sed >mcon/U/package.U <<'!STUFFY!FUNK!' -e 's/X//'
X?RCS:$Header: package.U,v 2.0 88/06/28 23:17:51 lwall Locked $
X?RCS: $Log: package.U,v $
X?RCS: Revision 2.0 88/06/28 23:17:51 lwall
X?RCS: Baseline.
X?RCS:
X?MAKE:package: Null
X?MAKE: -pick add.package $@ %*
X?S:package:
X?S: This variable contains the name of the package being constructed.
X?S: It is primarily intended for the use of later Configure units.
X?S:.
X: set package name
Xpackage=PACKAGENAME
X
!STUFFY!FUNK!
echo Extracting mcon/U/Chk_whoami.U
sed >mcon/U/Chk_whoami.U <<'!STUFFY!FUNK!' -e 's/X//'
X?RCS:$Header: Chk_whoami.U,v 2.0 88/06/28 23:12:39 lwall Locked $
X?X:
X?X: This unit makes sure we don't try to include whoami.h if uname() exists.
X?X:
X?RCS: $Log: Chk_whoami.U,v $
X?RCS: Revision 2.0 88/06/28 23:12:39 lwall
X?RCS: Baseline.
X?RCS:
X?MAKE:whoami_chk: d_douname d_whoami
X?MAKE: -pick add $@ %*
X: weed out incompatibilities
Xcase "$d_douname" in
X "$define") d_whoami="$undef" ;;
Xesac
X
!STUFFY!FUNK!
echo Extracting mcon/U/AAAAA.U
sed >mcon/U/AAAAA.U <<'!STUFFY!FUNK!' -e 's/X//'
X?RCS:$Header: AAAAA.U,v 2.0 88/06/28 23:12:35 lwall Locked $
X?X:
X?X: The purpose of this file is to supply the head of the .makefile created
X?X: by metaconfig. For this reason it must be first in alphabetical order.
X?X:
X?RCS: $Log: AAAAA.U,v $
X?RCS: Revision 2.0 88/06/28 23:12:35 lwall
X?RCS: Baseline.
X?RCS:
X?MAKE:
X?MAKE:All: Finish
X?MAKE:
X?MAKE:Nothing:
X?MAKE:
!STUFFY!FUNK!
echo Extracting mcon/U/Null.U
sed >mcon/U/Null.U <<'!STUFFY!FUNK!' -e 's/X//'
X?RCS:$Header: Null.U,v 2.0 88/06/28 23:13:43 lwall Locked $
X?X:
X?X: This unit ends up producing shell code to set all variables to ''. This
X?X: probably isn't necessary, but I'm paranoid. About certain things.
X?X:
X?RCS: $Log: Null.U,v $
X?RCS: Revision 2.0 88/06/28 23:13:43 lwall
X?RCS: Baseline.
X?RCS:
X?MAKE:Null: Head
X?MAKE: -pick add.Null $@ %*
!STUFFY!FUNK!
echo Extracting pat/patindex
sed >pat/patindex <<'!STUFFY!FUNK!' -e 's/X//'
X#!/bin/sh
Xif test -d bugs; then
X cd bugs
Xfi
Xegrep '^Subject: ' patch? patch?? | sed 's/^patch\(.*\):Subject/\1/'
!STUFFY!FUNK!
echo Extracting pat/patchlevel.h
sed >pat/patchlevel.h <<'!STUFFY!FUNK!' -e 's/X//'
X#define PATCHLEVEL 0
!STUFFY!FUNK!
echo ""
echo "End of kit 7 (of 7)"
cat /dev/null >kit7isdone
run=''
config=''
for iskit in 1 2 3 4 5 6 7; do
if test -f kit${iskit}isdone; then
run="$run $iskit"
else
todo="$todo $iskit"
fi
done
case $todo in
'')
echo "You have run all your kits. Please read README and then type Configure."
chmod 755 Configure
;;
*) echo "You have run$run."
echo "You still need to run$todo."
;;
esac
: Someone might mail this, so...
exit