Diffstat (limited to 'mcon/U/package.U')
1 files changed, 51 insertions, 0 deletions
diff --git a/mcon/U/package.U b/mcon/U/package.U
new file mode 100644
@@ -0,0 +1,51 @@
+?RCS: $Id: package.U,v 18.104.22.168 1994/10/29 16:27:21 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?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: $Log: package.U,v $
+?RCS: Revision 22.214.171.124 1994/10/29 16:27:21 ram
+?RCS: patch36: beware of non-ascii character sets when translating case
+?RCS: Revision 126.96.36.199 1993/11/10 17:37:02 ram
+?RCS: patch14: skip definition of spackage if not otherwise used
+?RCS: Revision 188.8.131.52 1993/09/13 16:11:10 ram
+?RCS: patch10: added spackage, suitable for starting sentences
+?RCS: Revision 3.0 1993/08/18 12:09:28 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:package spackage: Null
+?MAKE: -pick wipe $@ %<
+?S: This variable contains the name of the package being constructed.
+?S: It is primarily intended for the use of later Configure units.
+?S: This variable contains the name of the package being constructed,
+?S: with the first letter uppercased, i.e. suitable for starting
+: set package name
+first=`echo $package | sed -e 's/^\(.\).*/\1/'`
+last=`echo $package | sed -e 's/^.\(.*\)/\1/'`
+?X: So early in the Configure script, we don't have ./tr set up and can't
+?X: include Tr in our dependency or that would create a cycle. Therefore,
+?X: we have to somehow duplicate the work done in Tr. That's life.
+case "`echo AbyZ | tr '[:lower:]' '[:upper:]' 2>/dev/null`" in
+ABYZ) spackage=`echo $first | tr '[:lower:]' '[:upper:]'`$last;;
+*) spackage=`echo $first | tr '[a-z]' '[A-Z]'`$last;;