summaryrefslogtreecommitdiff
path: root/mcon/files
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/files')
-rw-r--r--mcon/files/Internal.U20
-rw-r--r--mcon/files/README6
-rw-r--r--mcon/files/d_function.U31
-rw-r--r--mcon/files/dir.U47
-rw-r--r--mcon/files/file.U47
-rw-r--r--mcon/files/i_include.U32
-rw-r--r--mcon/files/keyword.U54
-rw-r--r--mcon/files/locate.U47
-rw-r--r--mcon/files/question.U58
-rw-r--r--mcon/files/rcshead.U15
-rw-r--r--mcon/files/shell.U68
-rw-r--r--mcon/files/type.U47
12 files changed, 472 insertions, 0 deletions
diff --git a/mcon/files/Internal.U b/mcon/files/Internal.U
new file mode 100644
index 0000000..2c356f7
--- /dev/null
+++ b/mcon/files/Internal.U
@@ -0,0 +1,20 @@
+?RCS: $Id: Internal.U,v 3.0 1993/08/18 12:10:04 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: Internal.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:04 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?X:
+?X: This unit does this and that.
+?X:
+?MAKE:<^INTERNAL>: Myinit
+?MAKE: -pick add $@ %<
+
diff --git a/mcon/files/README b/mcon/files/README
new file mode 100644
index 0000000..cdbc905
--- /dev/null
+++ b/mcon/files/README
@@ -0,0 +1,6 @@
+This directory contains unit templates.
+
+It is hoped metaconfig will have a tool to generate "standard" units based
+on some well-known templates.
+
+For now, it has a documentary-only value.
diff --git a/mcon/files/d_function.U b/mcon/files/d_function.U
new file mode 100644
index 0000000..3132094
--- /dev/null
+++ b/mcon/files/d_function.U
@@ -0,0 +1,31 @@
+?RCS: $Id: d_function.U,v 3.0 1993/08/18 12:10:05 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: d_function.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:05 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:d_<FUNCTION>: Inlibc
+?MAKE: -pick add $@ %<
+?S:d_<FUNCTION>:
+?S: This variable conditionally defines HAS_<%FUNCTION> if <FUNCTION>() is
+?S: available to ...
+?S:.
+?C:HAS_<%FUNCTION>:
+?C: This symbol, if defined, indicates that the <FUNCTION>() routine is
+?C: available to ...
+?C:.
+?H:#$d_<FUNCTION> HAS_<%FUNCTION> /**/
+?H:.
+?LINT:set d_<FUNCTION>
+: see if <FUNCTION> exists
+set <FUNCTION> d_<FUNCTION>
+eval $inlibc
+
diff --git a/mcon/files/dir.U b/mcon/files/dir.U
new file mode 100644
index 0000000..d941ac6
--- /dev/null
+++ b/mcon/files/dir.U
@@ -0,0 +1,47 @@
+?RCS: $Id: dir.U,v 3.0 1993/08/18 12:10:06 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: dir.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:06 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:<DIR> <DIR>exp: Oldconfig Getfile
+?MAKE: -pick add $@ %<
+?S:<DIR>:
+?S: Where <DIR> files are located. The name may have ~ on the front.
+?S:.
+?S:<DIR>exp:
+?S: This is the same as the <DIR> variable, but is filename expanded
+?S: so that later Configure units can look at the <DIR> directory if desired.
+?S:.
+?C:<%DIR>:
+?C: The directory where <DIR> files are located. The name may have ~ on
+?C: the front so the C program must be prepared to do ~ expansion.
+?C:.
+?C:<%DIR>_EXP:
+?C: The same as <DIR>, but ~name expantion has been done by Configure.
+?C:.
+?H:#define <%DIR> "$<DIR>" /**/
+?H:#define <%DIR>_EXP "$<DIR>exp" /**/
+?H:.
+: locate <DIR> directory
+echo " "
+case "$<DIR>" in
+'')
+ dflt=<DFLT>
+ ;;
+*) dflt="$<DIR>";;
+esac
+fn=d~
+rp='Where is the <DIR> directory?'
+. getfile
+<DIR>="$ans"
+<DIR>exp="$ansexp"
+
diff --git a/mcon/files/file.U b/mcon/files/file.U
new file mode 100644
index 0000000..b89f5fc
--- /dev/null
+++ b/mcon/files/file.U
@@ -0,0 +1,47 @@
+?RCS: $Id: file.U,v 3.0 1993/08/18 12:10:06 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: file.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:06 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:<FILE> <FILE>exp: Oldconfig Getfile
+?MAKE: -pick add $@ %<
+?S:<FILE>:
+?S: The name of the <FILE> file. The name may have ~ on the front.
+?S:.
+?S:<FILE>exp:
+?S: This is the same as the <FILE> variable, but is filename expanded
+?S: so that later Configure units can look at the <FILE> file if desired.
+?S:.
+?C:<%FILE>:
+?C: The name of the <FILE> file. The name may have ~ on the front so the
+?C: program must be prepared to do filename expansion.
+?C:.
+?C:<%FILE>_EXP:
+?C: The same as <FILE> but ~name expansion has been done by Configure.
+?C:.
+?H:#define <%FILE> "$<FILE>" /**/
+?H:#define <%FILE>_EXP "$<FILE>exp" /**/
+?H:.
+: locate <FILE> file
+echo " "
+case "$<FILE>" in
+'')
+ dflt=<DFLT>
+ ;;
+*) dflt="$<FILE>";;
+esac
+fn=f~
+rp='Where is the <FILE> file?'
+. getfile
+<FILE>="$ans"
+<FILE>exp="$ansexp"
+
diff --git a/mcon/files/i_include.U b/mcon/files/i_include.U
new file mode 100644
index 0000000..a845651
--- /dev/null
+++ b/mcon/files/i_include.U
@@ -0,0 +1,32 @@
+?RCS: $Id: i_include.U,v 3.0 1993/08/18 12:10:07 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: i_include.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:07 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:i_<INCLUDE>: Inhdr
+?MAKE: -pick add $@ %<
+?S:i_<INCLUDE>:
+?S: This variable conditionally defines the I_<%INCLUDE> symbol, which
+?S: indicates to the C program that <<INC_PATH>.h> exists and should
+?S: be included.
+?S:.
+?C:I_<%INCLUDE>:
+?C: This symbol, if defined, indicates that <<INC_PATH>.h> exists and should
+?C: be included.
+?C:.
+?H:#$i_<INCLUDE> I_<%INCLUDE> /**/
+?H:.
+?LINT:set i_<INCLUDE>
+: see if <INC_PATH>.h is available
+set <INC_PATH>.h i_<INCLUDE>
+eval $inhdr
+
diff --git a/mcon/files/keyword.U b/mcon/files/keyword.U
new file mode 100644
index 0000000..1623264
--- /dev/null
+++ b/mcon/files/keyword.U
@@ -0,0 +1,54 @@
+?RCS: $Id: keyword.U,v 3.0 1993/08/18 12:10:08 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: keyword.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:08 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:d_const: cat cc ccflags Setvar
+?MAKE: -pick add $@ %<
+?S:d_<KEY>:
+?S: This variable conditionally defines the HASCONST symbol, which
+?S: indicates to the C program that this C compiler knows about the
+?S: <KEY> type.
+?S:.
+?C:HAS<%KEY> ~ %<:
+?C: This symbol, if defined, indicates that this C compiler knows about
+?C: the <KEY> type. There is no need to actually test for that symbol
+?C: within your programs. The mere use of the "<KEY>" keyword will
+?C: trigger the necessary tests.
+?C:.
+?H:?%<:#$d_<KEY> HAS<%KEY> /**/
+?H:?%<:#ifndef HAS<%KEY>
+?H:?%<:#define <KEY>
+?H:?%<:#endif
+?H:.
+?W:%<:<KEY>
+?LINT:set d_<KEY>
+?LINT:known <KEY>
+: check for <KEY> keyword
+echo " "
+echo 'Checking to see if your C compiler knows about "<KEY>"...'
+$cat ><KEY>.c <<'EOCP'
+main()
+{
+ <KEY> char *foo;
+}
+EOCP
+if $cc -c $ccflags <KEY>.c >/dev/null 2>&1 ; then
+ val="$define"
+ echo "Yup, it does."
+else
+ val="$undef"
+ echo "Nope, it doesn't."
+fi
+set d_<KEY>
+eval $setvar
+
diff --git a/mcon/files/locate.U b/mcon/files/locate.U
new file mode 100644
index 0000000..93d7948
--- /dev/null
+++ b/mcon/files/locate.U
@@ -0,0 +1,47 @@
+?RCS: $Id: locate.U,v 3.0 1993/08/18 12:10:08 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: locate.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:08 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:<FILE> <FILE>exp: Oldconfig Getfile
+?MAKE: -pick add $@ %<
+?S:<FILE>:
+?S: The name of the <FILE> file. The name may have ~ on the front.
+?S:.
+?S:<FILE>exp:
+?S: This is the same as the <FILE> variable, but is filename expanded
+?S: so that later Configure units can look at the <FILE> file if desired.
+?S:.
+?C:<%FILE>:
+?C: The name of the <FILE> file. The name may have ~ on the front so the
+?C: program must be prepared to do filename expansion.
+?C:.
+?C:<%FILE>_EXP:
+?C: The same as <FILE> but ~name expansion has been done by Configure.
+?C:.
+?H:#define <%FILE> "$<FILE>" /**/
+?H:#define <%FILE>_EXP "$<FILE>exp" /**/
+?H:.
+: locate <FILE> file
+echo " "
+case "$<FILE>" in
+'')
+ dflt=<DFLT>
+ ;;
+*) dflt="$<FILE>";;
+esac
+fn=l~:<FILE>
+rp='Where is the <FILE> file?'
+. getfile
+<FILE>="$ans"
+<FILE>exp="$ansexp"
+
diff --git a/mcon/files/question.U b/mcon/files/question.U
new file mode 100644
index 0000000..dbc9b19
--- /dev/null
+++ b/mcon/files/question.U
@@ -0,0 +1,58 @@
+?RCS: $Id: question.U,v 3.0 1993/08/18 12:10:09 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: question.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:09 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:d_scorfl: cat Myread Oldconfig nametype Setvar
+?MAKE: -pick add $@ %<
+?S:d_scorfl:
+?S: This variable conditionally defines the SCOREFULL symbol, which
+?S: indicates to the C program that any scoreboard kept by the program
+?S: should be kept on the basis of the user's full name as opposed to
+?S: the user's login name.
+?S:.
+?C:SCOREFULL:
+?C: This symbol, if defined, indicates that any scoreboard kept by the
+?C: program should be kept on the basis of the user's full name as opposed
+?C: to the user's login name. If the user can change his full name he
+?C: can enter multiple scores if this is defined.
+?C:.
+?H:#$d_scorfl SCOREFULL /**/
+?H:.
+?LINT:set d_scorfl
+: see how they want the scoreboard kept
+case "$d_scorfl" in
+"$define") dflt=y ;;
+*) dflt=n ;;
+esac
+case "$nametype" in
+other) val="$undef" ;;
+*)
+ $cat <<'EOM'
+
+The scoreboard can be kept with one score per login name, or one score per full
+name. If users can change their full name, or if there is more than one person
+on your system with the same full name, you should keep the score by login name
+(the full name is still printed).
+
+EOM
+ rp='Do you want the scoreboard kept by full name?'
+ . myread
+ case "$ans" in
+ y*) val="$define" ;;
+ *) val="$undef" ;;
+ esac
+ ;;
+esac
+set d_scorfl
+eval $setvar
+
diff --git a/mcon/files/rcshead.U b/mcon/files/rcshead.U
new file mode 100644
index 0000000..2952d38
--- /dev/null
+++ b/mcon/files/rcshead.U
@@ -0,0 +1,15 @@
+?RCS: $Id: rcshead.U,v 3.0 1993/08/18 12:10:10 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: rcshead.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:10 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+
diff --git a/mcon/files/shell.U b/mcon/files/shell.U
new file mode 100644
index 0000000..cc906c6
--- /dev/null
+++ b/mcon/files/shell.U
@@ -0,0 +1,68 @@
+?RCS: $Id: shell.U,v 3.0 1993/08/18 12:10:10 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: shell.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:10 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:cc: cat contains sysman +large Mcc Myread Guess Oldconfig Loc
+?MAKE: -pick add $@ %<
+?DEF:cc=cc
+?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:.
+: see if we need a special compiler
+echo " "
+if usg; then
+ case "$cc" in
+ '') case "$Mcc" in
+ /*) dflt='Mcc';;
+ *) case "$large" in
+ -M*) dflt='cc';;
+ *) if $contains '\-M' $sysman/cc.1 >/dev/null 2>&1 ; then
+ if $contains '\-M' $sysman/cpp.1 >/dev/null 2>&1; then
+ dflt='cc'
+ else
+ dflt='cc -M'
+ fi
+ else
+ dflt='cc'
+ fi;;
+ esac;;
+ esac;;
+ *) dflt="$cc";;
+ esac
+ $cat <<'EOM'
+On some systems the default C compiler will not resolve multiple global
+references that happen to have the same name. On some such systems the "Mcc"
+command may be used to force these to be resolved. On other systems a "cc -M"
+command is required. (Note that the -M flag on other systems indicates a
+memory model to use!) If you have the Gnu C compiler, you might wish to use
+that instead.
+
+EOM
+ rp="What command will force resolution on this system?"
+ . myread
+ cc="$ans"
+else
+ case "$cc" in
+ '') dflt=cc;;
+ *) dflt="$cc";;
+ esac
+ rp="Use which C compiler?"
+ . myread
+ cc="$ans"
+fi
+case "$cc" in
+gcc*) cpp=`loc gcc-cpp $cpp $pth`;;
+esac
+
diff --git a/mcon/files/type.U b/mcon/files/type.U
new file mode 100644
index 0000000..0a63b49
--- /dev/null
+++ b/mcon/files/type.U
@@ -0,0 +1,47 @@
+?RCS: $Id: type.U,v 3.0 1993/08/18 12:10: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: $Log: type.U,v $
+?RCS: Revision 3.0 1993/08/18 12:10:11 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:uidtype: Myread Oldconfig contains usrinc
+?MAKE: -pick add $@ %<
+?S:uidtype:
+?S: This variable defines UIDTYPE to be something like uid_t, int,
+?S: ushort, or whatever type is used to declare user ids in the kernel.
+?S:.
+?C:Uid_t (UIDTYPE):
+?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 Uid_t $uidtype /* UID type */
+?H:.
+: see what type uids are declared as in the kernel
+case "$uidtype" in
+'')
+ if $contains 'uid_t;' $usrinc/sys/types.h >/dev/null 2>&1 ; then
+ dflt='uid_t';
+ else
+ set `grep '_ruid;' $usrinc/sys/user.h 2>/dev/null` unsigned short
+ case $1 in
+ unsigned) dflt="$1 $2" ;;
+ *) dflt="$1" ;;
+ esac
+ fi
+ ;;
+*) dflt="$uidtype";;
+esac
+echo " "
+rp="What type are user ids on this system declared as?"
+. myread
+uidtype="$ans"
+