--- /dev/null
+?RCS: $Id: package.U 1 2006-08-24 12:32:52Z rmanfredi $
+?RCS:
+?RCS: Copyright (c) 1991-1997, 2004-2006, 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 4.0.
+?RCS:
+?RCS: $Log: package.U,v $
+?RCS: Revision 3.0.1.3 1994/10/29 16:27:21 ram
+?RCS: patch36: beware of non-ascii character sets when translating case
+?RCS:
+?RCS: Revision 3.0.1.2 1993/11/10 17:37:02 ram
+?RCS: patch14: skip definition of spackage if not otherwise used
+?RCS:
+?RCS: Revision 3.0.1.1 1993/09/13 16:11:10 ram
+?RCS: patch10: added spackage, suitable for starting sentences
+?RCS:
+?RCS: Revision 3.0 1993/08/18 12:09:28 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?RCS:
+?MAKE:package spackage: Nothing
+?MAKE: -pick wipe $@ %<
+?S:package:
+?S: This variable contains the name of the package being constructed.
+?S: It is primarily intended for the use of later Configure units.
+?S:.
+?S:spackage:
+?S: This variable contains the name of the package being constructed,
+?S: with the first letter uppercased, i.e. suitable for starting
+?S: sentences.
+?S:.
+?X: dist-4 has defined PACKAGE: here, which clashes with perly.h
+?X: as package is a reserved keyword in perl
+?T:first last
+: set package name
+package='<PACKAGENAME>'
+@if spackage
+first=`echo $package | sed -e 's/^\(.\).*/\1/'`
+last=`echo $package | sed -e 's/^.\(.*\)/\1/'`
+?X:
+?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.
+?X:
+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;;
+esac
+@end
+
-?RCS: $Id: src.U,v 3.0.1.1 1997/02/28 16:23:54 ram Exp $
+?RCS: $Id: src.U 1 2006-08-24 12:32:52Z rmanfredi $
?RCS:
?RCS: Copyright (c) 1996, Cygnus Support
-?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: Copyright (c) 1991-1997, 2004-2006, 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: of the source tree for dist 4.0.
?RCS:
?RCS: Original Author: Tom Tromey <tromey@cygnus.com>
?RCS:
?MAKE: -pick add $@ %<
?Y:TOP
?S:src (srcdir):
-?S: This variable holds the path to the package source. It is up to
-?S: the Makefile to use this variable and set VPATH accordingly to
-?S: find the sources remotely.
+?S: This variable holds the (possibly relative) path of the package source.
+?S: It is up to the Makefile to use this variable and set VPATH accordingly
+?S: to find the sources remotely. Use $pkgsrc to have an absolute path.
?S:.
?S:rsrc (relsrcdir):
?S: This variable holds a potentially relative path to the package
'') src=/
rsrc=/
;;
-/*) rsrc="$src";;
-*) rsrc="../$src";;
+/*) rsrc="$src";;
+*) rsrc="../$src";;
esac
?X:
?X: Now check whether we have found the right source tree (i.e. the one for the
?X: If it matches, we know we found the right source tree. -- RAM, 15/03/96
?X:
if test -f $rsrc/Configure && \
- $contains "^package=$package$" $rsrc/Configure >/dev/null 2>&1
+ $contains "^package='$package'\$" $rsrc/Configure >/dev/null 2>&1
then
: found it, so we are ok.
else