This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Backport #27488 & #27489. prefix/prefixexp/installprefix stuff
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Sun, 2 Apr 2006 10:01:37 +0000 (10:01 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Sun, 2 Apr 2006 10:01:37 +0000 (10:01 +0000)
All hand-edits. Hope I got them all right.

p4raw-id: //depot/metaconfig@27670

25 files changed:
U/installdirs/Setprefixvar.U [new file with mode: 0644]
U/installdirs/archlib.U
U/installdirs/bin.U
U/installdirs/html1dir.U
U/installdirs/html3dir.U
U/installdirs/man1dir.U
U/installdirs/man3dir.U
U/installdirs/privlib.U
U/installdirs/scriptdir.U
U/installdirs/sitearch.U
U/installdirs/sitebin.U
U/installdirs/sitehtml1dir.U
U/installdirs/sitehtml3dir.U
U/installdirs/sitelib.U
U/installdirs/siteman1dir.U
U/installdirs/siteman3dir.U
U/installdirs/sitescriptdir.U
U/installdirs/vendorarch.U
U/installdirs/vendorbin.U
U/installdirs/vendorhtml1dir.U
U/installdirs/vendorhtml3dir.U
U/installdirs/vendorlib.U
U/installdirs/vendorman1dir.U
U/installdirs/vendorman3dir.U
U/installdirs/vendorscript.U

diff --git a/U/installdirs/Setprefixvar.U b/U/installdirs/Setprefixvar.U
new file mode 100644 (file)
index 0000000..9ae8b7c
--- /dev/null
@@ -0,0 +1,49 @@
+?RCS: $Id: Setprefixvar.U,v 3.0 2006/04/01 17:25:29 hmbrand $
+?RCS:
+?RCS: Copyright (c) 2006-2006, H.Merijn Brand & Nicholas Clark
+?RCS:
+?RCS: This file is included with or a derivative work of a file included
+?RCS: with the metaconfig program of Raphael Manfredi's "dist" distribution.
+?RCS: In accordance with clause 7 of dist's modified Artistic License:
+?RCS:
+?RCS:   You may distribute under the terms of either the GNU General Public
+?RCS:   License or the Artistic License, as specified in the README file.
+?RCS:
+?X:
+?X: This unit sets up the scripts installprefix and setprefixvar, so code
+?X: in other parts can be more simple and maintainable
+?X:
+?MAKE:Setprefixvar: Myread Getfile startsh eunicefix test \
+       prefix prefixexp installprefix installprefixexp
+?MAKE: -pick add $@ %<
+?LINT:extern prefixvar
+?F:./setprefixvar
+?F:./installprefix
+: Perform the prefixexp/installprefixexp correction if necessary
+cat <<EOS >installprefix
+$startsh
+EOS
+cat <<'EOSC' >>installprefix
+: Change installation prefix, if necessary.
+if $test X"$prefix" != X"$installprefix"; then
+    eval "install${prefixvar}=\`echo \$${prefixvar}exp | sed \"s#^\$prefixexp#\$installprefixexp#\"\`"
+else
+    eval "install${prefixvar}=\"\$${prefixvar}exp\""
+fi
+EOSC
+chmod +x installprefix
+$eunicefix installprefix
+
+: Set variables such as privlib and privlibexp from the output of ./getfile
+: performing the prefixexp/installprefixexp correction if necessary.
+cat <<EOS >setprefixvar
+$startsh
+EOS
+cat <<'EOSC' >>setprefixvar
+eval "${prefixvar}=\"\$ans\""
+eval "${prefixvar}exp\=\"\$ansexp\""
+. ./installprefix
+EOSC
+chmod +x setprefixvar
+$eunicefix setprefixvar
+
index fa28887..5ddc48c 100644 (file)
@@ -5,7 +5,7 @@
 ?RCS: This file is included with or a derivative work of a file included
 ?RCS: with the metaconfig program of Raphael Manfredi's "dist" distribution.
 ?RCS: In accordance with clause 7 of dist's modified Artistic License:
-?RCS: 
+?RCS:
 ?RCS:     You may distribute under the terms of either the GNU General Public
 ?RCS:     License or the Artistic License, as specified in the README file.
 ?RCS:
 ?RCS: patch36: created by ADO
 ?RCS:
 ?MAKE:d_archlib archlib archlibexp installarchlib: \
-       archname spackage prefix prefixexp \
-       cat Getfile Loc Oldconfig privlib sed test \
-       Prefixit Prefixup installprefix installprefixexp
+       cat Getfile Setprefixvar Loc Oldconfig archname spackage  \
+       privlib sed test Prefixit Prefixup
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:d_archlib:
 ?S:    This variable conditionally defines ARCHLIB to hold the pathname
 ?S:    of architecture-dependent library files for $package.  If
 ?S:    $archlib is the same as $privlib, then this is set to undef.
 ?S:.
+?D:archlib=''
 ?S:archlib:
 ?S:    This variable holds the name of the directory in which the user wants
 ?S:    to put architecture-dependent public library files for $package.
 ?S:    Programs using this variable must be prepared to deal
 ?S:    with filename expansion.
 ?S:.
+?D:archlibexp=''
 ?S:archlibexp:
 ?S:    This variable is the same as the archlib variable, but is
 ?S:    filename expanded at configuration time, for convenient use.
 ?S:.
+?D:installarchlib=''
 ?S:installarchlib:
 ?S:    This variable is really the same as archlibexp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -98,17 +101,11 @@ EOM
 fn=d+~
 rp='Where do you want to put the public architecture-dependent libraries?'
 . ./getfile
-archlib="$ans"
-archlibexp="$ansexp"
+prefixvar=archlib
+. ./setprefixvar
 if $test X"$archlib" = X"$privlib"; then
        d_archlib="$undef"
 else
        d_archlib="$define"
 fi
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installarchlib=`echo $archlibexp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installarchlib="$archlibexp"
-fi
 
index 6645bb7..e55e5c6 100644 (file)
@@ -1,7 +1,7 @@
 ?RCS: $Id: bin.U,v 3.1 1999/07/09 18:20:13 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS: 
+?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: Revision 3.0  1993/08/18  12:05:26  ram
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
-?MAKE:bin binexp installbin: Prefixit prefix prefixexp \
-       installprefix installprefixexp \
-       Getfile Oldconfig test
+?MAKE:bin binexp installbin: Prefixit Getfile Setprefixvar Oldconfig test
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:bin=''
 ?S:bin:
 ?S:    This variable holds the name of the directory in which the user wants
 ?S:    to put publicly executable images for the package in question.  It
 ?S:    is most often a local directory such as /usr/local/bin. Programs using
 ?S:    this variable must be prepared to deal with ~name substitution.
 ?S:.
+?D:binexp=''
 ?S:binexp:
 ?S:    This is the same as the bin variable, but is filename expanded at
 ?S:    configuration time, for use in your makefiles.
 ?S:.
+?D:installbin=''
 ?S:installbin:
 ?S:    This variable is the same as binexp unless AFS is running in which case
 ?S:    the user is explicitely prompted for it. This variable should always
@@ -69,13 +71,7 @@ rp='Pathname where the public executables will reside?'
 if $test "X$ansexp" != "X$binexp"; then
        installbin=''
 fi
-bin="$ans"
-binexp="$ansexp"
-: Change installation prefix, if necessary.
 : XXX Bug? -- ignores Configure -Dinstallprefix setting.
-if $test X"$prefix" != X"$installprefix"; then
-       installbin=`echo $binexp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installbin="$binexp"
-fi
+prefixvar=bin
+. ./setprefixvar
 
index ff5215a..52b4b39 100644 (file)
@@ -1,7 +1,7 @@
 ?RCS: $Id: html1dir.U,v $
 ?RCS:
 ?RCS: Copyright (c) 1999 Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: html1dir.U,v $
 ?RCS:
-?MAKE:html1dir html1direxp installhtml1dir: cat Loc \
-       spackage test Getfile Prefixit Prefixup Myread \
-       prefix prefixexp installprefix installprefixexp
+?MAKE:html1dir html1direxp installhtml1dir: cat Loc Myread \
+       spackage test Getfile Setprefixvar Prefixit Prefixup
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:html1dir=''
 ?S:html1dir:
 ?S:    This variable contains the name of the directory in which html
 ?S:    source pages are to be put.  This directory is for pages
 ?S:    is intended to correspond roughly to section 1 of the Unix
 ?S:    manuals.
 ?S:.
+?D:html1direxp=''
 ?S:html1direxp:
 ?S:    This variable is the same as the html1dir variable, but is filename
 ?S:    expanded at configuration time, for convenient use in makefiles.
 ?S:.
+?D:installhtml1dir=''
 ?S:installhtml1dir:
-?S:    This variable is really the same as html1direxp, unless you are 
-?S:    using a different installprefix.  For extra portability, you 
+?S:    This variable is really the same as html1direxp, unless you are
+?S:    using a different installprefix.  For extra portability, you
 ?S:    should only use this variable within your makefiles.
 ?S:.
 : determine where html pages for programs go
@@ -36,7 +39,7 @@ set html1dir html1dir none
 eval $prefixit
 $cat <<EOM
 
-If you wish to install html files for programs in $spackage, indicate 
+If you wish to install html files for programs in $spackage, indicate
 the appropriate directory here.  To skip installing html files,
 answer "none".
 EOM
@@ -47,14 +50,8 @@ esac
 fn=dn+~
 rp="Directory for the main $spackage html pages?"
 . ./getfile
-html1dir="$ans"
-html1direxp="$ansexp"
+prefixvar=html1dir
++. ./setprefixvar
 : Use ' ' for none so value is preserved next time through Configure
 $test X"$html1dir" = "X" && html1dir=' '
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installhtml1dir=`echo $html1direxp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installhtml1dir="$html1direxp"
-fi
 
index 68b4ece..a1dff1e 100644 (file)
@@ -1,7 +1,7 @@
 ?RCS: $Id: html3dir.U,v $
 ?RCS:
 ?RCS: Copyright (c) 1999 Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: html3dir.U,v $
 ?RCS:
-?MAKE:html3dir html3direxp installhtml3dir: cat sed Loc \
-       spackage test Getfile Prefixit Prefixup Myread \
-       prefix prefixexp installprefix installprefixexp html1dir
+?MAKE:html3dir html3direxp installhtml3dir: cat sed Loc Myread \
+       spackage test Getfile Setprefixvar Prefixit Prefixup html1dir
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:html3dir=''
 ?S:html3dir:
 ?S:    This variable contains the name of the directory in which html
 ?S:    source pages are to be put.  This directory is for pages
 ?S:    that describe libraries or modules.  It is intended to
 ?S:    correspond roughly to section 3 of the Unix manuals.
 ?S:.
+?D:html3direxp=''
 ?S:html3direxp:
 ?S:    This variable is the same as the html3dir variable, but is filename
 ?S:    expanded at configuration time, for convenient use in makefiles.
 ?S:.
+?D:installhtml3dir=''
 ?S:installhtml3dir:
-?S:    This variable is really the same as html3direxp, unless you are 
-?S:    using a different installprefix.  For extra portability, you 
+?S:    This variable is really the same as html3direxp, unless you are
+?S:    using a different installprefix.  For extra portability, you
 ?S:    should only use this variable within your makefiles.
 ?S:.
 : determine where html pages for libraries and modules go
@@ -48,14 +51,8 @@ esac
 fn=dn+~
 rp="Directory for the $spackage module html pages?"
 . ./getfile
-html3dir="$ans"
-html3direxp="$ansexp"
+prefixvar=html3dir
+. ./setprefixvar
 : Use ' ' for none so value is preserved next time through Configure
 $test X"$html3dir" = "X" && html3dir=' '
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installhtml3dir=`echo $html3direxp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installhtml3dir="$html3direxp"
-fi
 
index 36e68fc..5875919 100644 (file)
@@ -2,7 +2,7 @@
 ?RCS:
 ?RCS: Copyright (c) 1996, 1999 Andy Dougherty
 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS: 
+?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
 ?X:
 ?X:    This was originally specific to perl5.  Since perl5 has man pages that
 ?X:    go in both man1/ and man3/ directories, we need both man1dir
-?X:    and man3dir.  This unit is basically dist's mansrc.U with 
+?X:    and man3dir.  This unit is basically dist's mansrc.U with
 ?X:    man1 used instead of man everywhere.
 ?X:
 ?MAKE:man1dir man1direxp man1ext installman1dir: cat nroff Loc Oldconfig \
-       spackage test Getfile Prefixit Prefixup sysman Myread \
-       prefix prefixexp installprefix installprefixexp sed
+       spackage test Getfile Setprefixvar Prefixit Prefixup sysman Myread \
+       sed prefixexp
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:man1dir=''
 ?S:man1dir:
 ?S:    This variable contains the name of the directory in which manual
 ?S:    source pages are to be put.  It is the responsibility of the
 ?S:    Makefile.SH to get the value of this into the proper command.
 ?S:    You must be prepared to do the ~name expansion yourself.
 ?S:.
+?D:man1direxp=''
 ?S:man1direxp:
 ?S:    This variable is the same as the man1dir variable, but is filename
 ?S:    expanded at configuration time, for convenient use in makefiles.
 ?S:.
+?D:installman1dir=''
 ?S:installman1dir:
 ?S:    This variable is really the same as man1direxp, unless you are using
 ?S:    AFS in which case it points to the read/write location whereas
@@ -97,14 +101,9 @@ rp="Where do the main $spackage manual pages (source) go?"
 if $test "X$man1direxp" != "X$ansexp"; then
        installman1dir=''
 fi
-man1dir="$ans"
-man1direxp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installman1dir=`echo $man1direxp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installman1dir="$man1direxp"
-fi
+prefixvar=man1dir
+. ./setprefixvar
+
 case "$man1dir" in
 '')    man1dir=' '
        installman1dir='';;
index 72a4b95..33aec41 100644 (file)
@@ -2,7 +2,7 @@
 ?RCS:
 ?RCS: Copyright (c) 1996-1999, Andy Dougherty
 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS: 
+?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
 ?X:
 ?X:    This was originally specific to perl5.  Since perl5 has man pages that
 ?X:    go in both man1/ and man3/ directories, we need both man1dir
-?X:    and man3dir.  This unit is basically dist's mansrc.U with 
+?X:    and man3dir.  This unit is basically dist's mansrc.U with
 ?X:    man3 used instead of man everywhere.
-?X:    I then added various tests because perl5 has *lots* of man3 
+?X:    I then added various tests because perl5 has *lots* of man3
 ?X:    pages with long file names. -- ADO
 ?X:
 ?MAKE:man3dir man3direxp man3ext installman3dir: cat nroff Loc Oldconfig \
-       sed man1dir spackage package Getfile prefix prefixexp Prefixit Prefixup \
-       installprefix installprefixexp d_flexfnam privlib Myread test
+       sed man1dir spackage package Getfile Setprefixvar Prefixit Prefixup \
+       d_flexfnam privlib Myread test
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:man3dir=''
 ?S:man3dir:
 ?S:    This variable contains the name of the directory in which manual
 ?S:    source pages are to be put.  It is the responsibility of the
 ?S:    Makefile.SH to get the value of this into the proper command.
 ?S:    You must be prepared to do the ~name expansion yourself.
 ?S:.
+?D:man3direxp=''
 ?S:man3direxp:
 ?S:    This variable is the same as the man3dir variable, but is filename
 ?S:    expanded at configuration time, for convenient use in makefiles.
 ?S:.
+?D:installman3dir=''
 ?S:installman3dir:
 ?S:    This variable is really the same as man3direxp, unless you are using
 ?S:    AFS in which case it points to the read/write location whereas
@@ -72,7 +76,7 @@ esac
 case "$d_flexfnam" in
 undef)
        $cat <<'EOM'
-However, your system can't handle the long file names like File::Basename.3. 
+However, your system can't handle the long file names like File::Basename.3.
 EOM
        case "$man3dir" in
        '') man3dir="none";;
@@ -98,8 +102,8 @@ case "$man3dir" in
                cat <<EOM >&4
 
 WARNING:  Previous versions of perl installed man3 pages into
-$privlib/man/man3.  This version will suggest a 
-new default of $dflt.  
+$privlib/man/man3.  This version will suggest a
+new default of $dflt.
 EOM
                tdflt=$dflt
                dflt='n'
@@ -120,14 +124,9 @@ echo " "
 fn=dn+~
 rp="Where do the $package library man pages (source) go?"
 . ./getfile
-man3dir="$ans"
-man3direxp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installman3dir=`echo $man3direxp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installman3dir="$man3direxp"
-fi
+prefixvar=man3dir
+. ./setprefixvar
+
 case "$man3dir" in
 '')    man3dir=' '
        installman3dir='';;
index e897ab9..2d4c514 100644 (file)
@@ -1,11 +1,11 @@
 ?RCS: $Id: privlib.U,v 3.1 1999/07/08 18:32:29 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS: 
+?RCS:
 ?RCS: This file is included with or a derivative work of a file included
 ?RCS: with the metaconfig program of Raphael Manfredi's "dist" distribution.
 ?RCS: In accordance with clause 7 of dist's modified Artistic License:
-?RCS: 
+?RCS:
 ?RCS:     You may distribute under the terms of either the GNU General Public
 ?RCS:     License or the Artistic License, as specified in the README file.
 ?RCS:
 ?RCS: Revision 3.0  1993/08/18  12:09:35  ram
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
-?MAKE:privlib privlibexp installprivlib: package cat Getfile \
-       Oldconfig prefix prefixexp installprefix installprefixexp \
-       Prefixit test version installstyle
+?MAKE:privlib privlibexp installprivlib: package cat Getfile Oldconfig \
+       Setprefixvar Prefixit version installstyle
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:privlib=''
 ?S:privlib:
 ?S:    This variable contains the eventual value of the PRIVLIB symbol,
 ?S:    which is the name of the private library for this package.  It may
 ?S:    have a ~ on the front. It is up to the makefile to eventually create
 ?S:    this directory while performing installation (with ~ substitution).
 ?S:.
+?D:privlibexp=''
 ?S:privlibexp:
 ?S:    This variable is the ~name expanded version of privlib, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installprivlib=''
 ?S:installprivlib:
 ?S:    This variable is really the same as privlibexp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -64,7 +67,7 @@
 ?H:.
 : determine where private library files go
 : Usual default is /usr/local/lib/perl5/$version.
-: Also allow things like /opt/perl/lib/$version, since 
+: Also allow things like /opt/perl/lib/$version, since
 : /opt/perl/lib/perl5... would be redundant.
 : The default "style" setting is made in installstyle.U
 case "$installstyle" in
@@ -81,12 +84,6 @@ EOM
 fn=d~+
 rp='Pathname where the private library files will reside?'
 . ./getfile
-privlib="$ans"
-privlibexp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installprivlib=`echo $privlibexp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installprivlib="$privlibexp"
-fi
+prefixvar=privlib
+. ./setprefixvar
 
index dfe94aa..27bc4a4 100644 (file)
@@ -1,7 +1,7 @@
 ?RCS: $Id: scriptdir.U,v 3.1 1999/07/09 18:20:13 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS: 
+?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: Baseline for dist 3.0 netwide release.
 ?RCS:
 ?MAKE:scriptdir scriptdirexp installscript: cat test Getfile Loc \
-       Oldconfig +bin sed Prefixit prefix prefixexp \
-       installprefix installprefixexp Prefixup
+       Oldconfig +bin sed Prefixit Setprefixvar prefixexp Prefixup
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:scriptdir=''
 ?S:scriptdir:
 ?S:    This variable holds the name of the directory in which the user wants
 ?S:    to put publicly scripts for the package in question.  It is either
 ?S:    mounted across different architectures, like /usr/share. Programs
 ?S:    must be prepared to deal with ~name expansion.
 ?S:.
+?D:scriptdirexp=''
 ?S:scriptdirexp:
 ?S:    This variable is the same as scriptdir, but is filename expanded
 ?S:    at configuration time, for programs not wanting to bother with it.
 ?S:.
+?D:installscript=''
 ?S:installscript:
 ?S:    This variable is usually the same as scriptdirexp, unless you are on
 ?S:    a system running AFS, in which case they may differ slightly. You
@@ -78,12 +81,12 @@ case "$scriptdir" in
        ;;
 esac
 $cat <<EOM
+
 Some installations have a separate directory just for executable scripts so
 that they can mount it across multiple architectures but keep the scripts in
 one spot.  You might, for example, have a subdirectory of /usr/share for this.
 Or you might just lump your scripts in with all your other executables.
+
 EOM
 fn=d~
 rp='Where do you keep publicly executable scripts?'
@@ -91,12 +94,6 @@ rp='Where do you keep publicly executable scripts?'
 if $test "X$ansexp" != "X$scriptdirexp"; then
        installscript=''
 fi
-scriptdir="$ans"
-scriptdirexp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installscript=`echo $scriptdirexp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installscript="$scriptdirexp"
-fi
+prefixvar=scriptdir
+. ./setprefixvar
 
index c76d9eb..f69f8df 100644 (file)
@@ -2,7 +2,7 @@
 ?RCS:
 ?RCS: Copyright (c) 1996-1998, Andy Dougherty
 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS: 
+?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: Revision 3.0.1.1  1997/02/28  16:21:30  ram
 ?RCS: patch61: created
 ?RCS:
-?MAKE:sitearch sitearchexp installsitearch: cat sed Getfile \
-       Oldconfig Prefixit archname installprefix installprefixexp \
-       prefix prefixexp sitelib test
+?MAKE:sitearch sitearchexp installsitearch: cat sed Getfile Oldconfig \
+       Setprefixvar Prefixit archname sitelib
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:sitearch=''
 ?S:sitearch:
 ?S:    This variable contains the eventual value of the SITEARCH symbol,
 ?S:    which is the name of the private library for this package.  It may
 ?S:            MakeMaker Makefile.PL
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
+?D:sitearchexp=''
 ?S:sitearchexp:
 ?S:    This variable is the ~name expanded version of sitearch, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installsitearch=''
 ?S:installsitearch:
 ?S:    This variable is really the same as sitearchexp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -81,12 +84,6 @@ EOM
 fn=d~+
 rp='Pathname for the site-specific architecture-dependent library files?'
 . ./getfile
-sitearch="$ans"
-sitearchexp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installsitearch=`echo $sitearchexp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installsitearch="$sitearchexp"
-fi
+prefixvar=sitearch
+. ./setprefixvar
 
index c38c700..a791ed2 100644 (file)
@@ -1,7 +1,7 @@
 ?RCS: $Id: sitebin.U,v $
 ?RCS:
 ?RCS: Copyright (c) 1999       Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: sitebin.U,v $
 ?RCS:
-?MAKE:sitebin sitebinexp installsitebin : Getfile Oldconfig siteprefix test \
-       installprefix installprefixexp prefix prefixexp
+?MAKE:sitebin sitebinexp installsitebin : Getfile Oldconfig \
+       Setprefixvar siteprefix
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:sitebin=''
 ?S:sitebin:
 ?S:    This variable holds the name of the directory in which the user wants
 ?S:    to put add-on publicly executable files for the package in question.  It
 ?S:            MakeMaker Makefile.PL
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
+?D:sitebinexp=''
 ?S:sitebinexp:
 ?S:    This is the same as the sitebin variable, but is filename expanded at
 ?S:    configuration time, for use in your makefiles.
 ?S:.
+?D:installsitebin=''
 ?S:installsitebin:
 ?S:    This variable is usually the same as sitebinexp, unless you are on
 ?S:    a system running AFS, in which case they may differ slightly. You
@@ -42,12 +46,6 @@ esac
 fn=d~
 rp='Pathname where the add-on public executables should be installed?'
 . ./getfile
-sitebin="$ans"
-sitebinexp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installsitebin=`echo $sitebinexp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installsitebin="$sitebinexp"
-fi
+prefixvar=sitebin
+. ./setprefixvar
 
index ec81723..239cc50 100644 (file)
@@ -1,17 +1,19 @@
 ?RCS: $Id$
 ?RCS:
 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
-?RCS: 
+?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:
-?MAKE:sitehtml1dir sitehtml1direxp installsitehtml1dir: test Getfile \
-       prefix prefixexp installprefix installprefixexp siteprefix html1dir sed
+?MAKE:sitehtml1dir sitehtml1direxp installsitehtml1dir: Getfile \
+       Setprefixvar prefix siteprefix html1dir sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:sitehtml1dir=''
 ?S:sitehtml1dir:
 ?S:    This variable contains the name of the directory in which site-specific
 ?S:    html source pages are to be put.  It is the responsibility of the
 ?S:            MakeMaker Makefile.PL
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
+?D:sitehtml1direxp=''
 ?S:sitehtml1direxp:
 ?S:    This variable is the same as the sitehtml1dir variable, but is filename
 ?S:    expanded at configuration time, for convenient use in makefiles.
 ?S:.
+?D:installsitehtml1dir=''
 ?S:installsitehtml1dir:
 ?S:    This variable is really the same as sitehtml1direxp, unless you are using
 ?S:    AFS in which case it points to the read/write location whereas
@@ -46,12 +50,6 @@ esac
 fn=dn+~
 rp='Pathname where the site-specific html pages should be installed?'
 . ./getfile
-sitehtml1dir="$ans"
-sitehtml1direxp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installsitehtml1dir=`echo $sitehtml1direxp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installsitehtml1dir="$sitehtml1direxp"
-fi
+prefixvar=sitehtml1dir
+. ./setprefixvar
 
index 95e3a18..b72da1b 100644 (file)
@@ -1,17 +1,19 @@
 ?RCS: $Id$
 ?RCS:
 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
-?RCS: 
+?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:
-?MAKE:sitehtml3dir sitehtml3direxp installsitehtml3dir: test Getfile \
-       prefix prefixexp installprefix installprefixexp siteprefix html3dir sed
+?MAKE:sitehtml3dir sitehtml3direxp installsitehtml3dir: Getfile \
+       Setprefixvar prefix siteprefix html3dir sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:sitehtml3dir=''
 ?S:sitehtml3dir:
 ?S:    This variable contains the name of the directory in which site-specific
 ?S:    library html source pages are to be put.  It is the responsibility of the
 ?S:            MakeMaker Makefile.PL
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
+?D:sitehtml3direxp=''
 ?S:sitehtml3direxp:
 ?S:    This variable is the same as the sitehtml3dir variable, but is filename
 ?S:    expanded at configuration time, for convenient use in makefiles.
 ?S:.
+?D:installsitehtml3dir=''
 ?S:installsitehtml3dir:
 ?S:    This variable is really the same as sitehtml3direxp, unless you are using
 ?S:    AFS in which case it points to the read/write location whereas
@@ -46,12 +50,6 @@ esac
 fn=dn+~
 rp='Pathname where the site-specific library html pages should be installed?'
 . ./getfile
-sitehtml3dir="$ans"
-sitehtml3direxp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installsitehtml3dir=`echo $sitehtml3direxp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installsitehtml3dir="$sitehtml3direxp"
-fi
+prefixvar=sitehtml3dir
+. ./setprefixvar
 
index 5b2a17c..1e2fd4e 100644 (file)
 ?RCS: Revision 3.0.1.1  1997/02/28  16:21:35  ram
 ?RCS: patch61: created
 ?RCS:
-?MAKE:sitelib sitelibexp installsitelib sitelib_stem: cat Getfile \
-       Oldconfig Prefixit package installprefix installprefixexp \
-       prefix prefixexp version test sed installstyle siteprefix
+?MAKE:sitelib sitelibexp installsitelib sitelib_stem: cat Getfile Oldconfig \
+       Setprefixvar Prefixit package version sed installstyle siteprefix
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:sitelib=''
 ?S:sitelib:
 ?S:    This variable contains the eventual value of the SITELIB symbol,
 ?S:    which is the name of the private library for this package.  It may
 ?S:            MakeMaker Makefile.PL
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
+?D:sitelibexp=''
 ?S:sitelibexp:
 ?S:    This variable is the ~name expanded version of sitelib, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installsitelib=''
 ?S:installsitelib:
 ?S:    This variable is really the same as sitelibexp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -97,13 +100,7 @@ EOM
 fn=d~+
 rp='Pathname for the site-specific library files?'
 . ./getfile
-sitelib="$ans"
-sitelibexp="$ansexp"
+prefixvar=sitelib
+. ./setprefixvar
 sitelib_stem=`echo "$sitelibexp" | sed "s,/$version$,,"`
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installsitelib=`echo $sitelibexp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installsitelib="$sitelibexp"
-fi
 
index 80c05fe..4f39776 100644 (file)
@@ -1,17 +1,19 @@
 ?RCS: $Id$
 ?RCS:
 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
-?RCS: 
+?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:
-?MAKE:siteman1dir siteman1direxp installsiteman1dir: test Getfile \
-       prefix prefixexp installprefix installprefixexp siteprefix man1dir sed
+?MAKE:siteman1dir siteman1direxp installsiteman1dir: Getfile \
+       Setprefixvar prefix siteprefix man1dir sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:siteman1dir=''
 ?S:siteman1dir:
 ?S:    This variable contains the name of the directory in which site-specific
 ?S:    manual source pages are to be put.  It is the responsibility of the
 ?S:            MakeMaker Makefile.PL
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
+?D:siteman1direxp=''
 ?S:siteman1direxp:
 ?S:    This variable is the same as the siteman1dir variable, but is filename
 ?S:    expanded at configuration time, for convenient use in makefiles.
 ?S:.
+?D:installsiteman1dir=''
 ?S:installsiteman1dir:
 ?S:    This variable is really the same as siteman1direxp, unless you are using
 ?S:    AFS in which case it points to the read/write location whereas
@@ -37,7 +41,7 @@
 : determine where add-on manual pages go
 case "$siteman1dir" in
 '')    dflt=`echo $man1dir | $sed "s#^$prefix#$siteprefix#"` ;;
-*)     dflt=$siteman1dir ;;
+*)     dflt=$siteman1dir ;;
 esac
 case "$dflt" in
 ''|' ') dflt=none ;;
@@ -45,12 +49,6 @@ esac
 fn=dn+~
 rp='Pathname where the site-specific manual pages should be installed?'
 . ./getfile
-siteman1dir="$ans"
-siteman1direxp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installsiteman1dir=`echo $siteman1direxp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installsiteman1dir="$siteman1direxp"
-fi
+prefixvar=siteman1dir
+. ./setprefixvar
 
index 8213f38..a2e8308 100644 (file)
@@ -1,17 +1,19 @@
 ?RCS: $Id$
 ?RCS:
 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
-?RCS: 
+?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:
-?MAKE:siteman3dir siteman3direxp installsiteman3dir: test Getfile \
-       prefix prefixexp installprefix installprefixexp siteprefix man3dir sed
+?MAKE:siteman3dir siteman3direxp installsiteman3dir: Getfile \
+       Setprefixvar prefix siteprefix man3dir sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:siteman3dir=''
 ?S:siteman3dir:
 ?S:    This variable contains the name of the directory in which site-specific
 ?S:    library man source pages are to be put.  It is the responsibility of the
 ?S:            MakeMaker Makefile.PL
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
+?D:siteman3direxp=''
 ?S:siteman3direxp:
 ?S:    This variable is the same as the siteman3dir variable, but is filename
 ?S:    expanded at configuration time, for convenient use in makefiles.
 ?S:.
+?D:installsiteman3dir=''
 ?S:installsiteman3dir:
 ?S:    This variable is really the same as siteman3direxp, unless you are using
 ?S:    AFS in which case it points to the read/write location whereas
@@ -37,7 +41,7 @@
 : determine where add-on library man pages go
 case "$siteman3dir" in
 '')    dflt=`echo $man3dir | $sed "s#^$prefix#$siteprefix#"` ;;
-*)     dflt=$siteman3dir ;;
+*)     dflt=$siteman3dir ;;
 esac
 case "$dflt" in
 ''|' ') dflt=none ;;
@@ -45,12 +49,6 @@ esac
 fn=dn+~
 rp='Pathname where the site-specific library manual pages should be installed?'
 . ./getfile
-siteman3dir="$ans"
-siteman3direxp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installsiteman3dir=`echo $siteman3direxp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installsiteman3dir="$siteman3direxp"
-fi
+prefixvar=siteman3dir
+. ./setprefixvar
 
index 37ebaf4..065bb44 100644 (file)
@@ -1,7 +1,7 @@
 ?RCS: $Id: sitescriptdir.U,v $
 ?RCS:
 ?RCS: Copyright (c) 1999       Andy Dougherty
-?RCS: 
+?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: $Log: sitescriptdir.U,v $
 ?RCS:
 ?MAKE:sitescriptdir sitescriptdirexp installsitescriptdir : Getfile \
-       Oldconfig test scriptdir prefix prefixexp siteprefix sed \
-       installprefix installprefixexp
+       Setprefixvar Oldconfig scriptdir prefix siteprefix sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
+?D:sitescriptdir=''
 ?S:sitescriptdir:
 ?S:    This variable holds the name of the directory in which the user wants
 ?S:    to put add-on publicly executable files for the package in question.  It
 ?S:            MakeMaker Makefile.PL
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
+?D:sitescriptdirexp=''
 ?S:sitescriptdirexp:
 ?S:    This is the same as the sitescriptdir variable, but is filename expanded at
 ?S:    configuration time, for use in your makefiles.
 ?S:.
 ?S:installsitescriptdir:
+?D:installsitescriptdir=''
 ?S:    This variable is usually the same as sitescriptdirexp, unless you are on
 ?S:    a system running AFS, in which case they may differ slightly. You
 ?S:    should always use this variable within your makefiles for portability.
@@ -43,12 +46,6 @@ esac
 fn=d~
 rp='Pathname where add-on public executable scripts should be installed?'
 . ./getfile
-sitescriptdir="$ans"
-sitescriptdirexp="$ansexp"
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installsitescriptdir=`echo $sitescriptdirexp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installsitescriptdir="$sitescriptdirexp"
-fi
+prefixvar=sitescriptdir
+. ./setprefixvar
 
index 0c5b813..eaed87e 100644 (file)
@@ -1,7 +1,7 @@
 ?RCS: $Id: vendorarch.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1999, Andy Dougherty
-?RCS: 
+?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:
 ?RCS:
 ?MAKE:d_vendorarch vendorarch vendorarchexp installvendorarch: sed Getfile \
-       Oldconfig Prefixit test archname vendorlib \
-       vendorprefix prefix prefixexp installprefix installprefixexp
+       Setprefixvar Oldconfig Prefixit archname vendorlib vendorprefix
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:vendorarch:
 ?S:    This variable contains the value of the PERL_VENDORARCH symbol.
-?S:    It may have a ~ on the front. 
+?S:    It may have a ~ on the front.
 ?S:    The standard distribution will put nothing in this directory.
 ?S:    Vendors who distribute perl may wish to place their own
 ?S:    architecture-dependent modules and extensions in this directory with
-?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
 ?S:vendorarchexp:
 ?S:    This variable is the ~name expanded version of vendorarch, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installvendorarch=''
 ?S:installvendorarch:
 ?S:    This variable is really the same as vendorarchexp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
 ?C:    If defined, this symbol contains the name of a private library.
 ?C:    The library is private in the sense that it needn't be in anyone's
 ?C:    execution path, but it should be accessible by the world.
-?C:    It may have a ~ on the front. 
+?C:    It may have a ~ on the front.
 ?C:    The standard distribution will put nothing in this directory.
 ?C:    Vendors who distribute perl may wish to place their own
 ?C:    architecture-dependent modules and extensions in this directory with
-?C:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?C:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?C:    or equivalent.  See INSTALL for details.
 ?C:.
 ?C:PERL_VENDORARCH_EXP:
@@ -80,10 +81,6 @@ case "$vendorprefix" in
        vendorarchexp="$ansexp"
        ;;
 esac
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installvendorarch=`echo $vendorarchexp | sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installvendorarch="$vendorarchexp"
-fi
+prefixvar=vendorarch
++. ./installprefix
 
index 0f668d5..f3d616b 100644 (file)
@@ -1,22 +1,22 @@
 ?RCS: $Id: vendorbin.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1999, Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: vendorbin.U,v $
 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
 ?RCS: Initial revision
 ?RCS:
 ?RCS:
 ?MAKE:d_vendorbin vendorbin vendorbinexp installvendorbin: Getfile \
-       Oldconfig Prefixit test vendorprefix prefix prefixexp sed \
-       installprefix installprefixexp
+       Setprefixvar Oldconfig Prefixit vendorprefix sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:vendorbin:
 ?S:    This variable contains the eventual value of the VENDORBIN symbol.
 ?S:    The standard distribution will put nothing in this directory.
 ?S:    Vendors who distribute perl may wish to place additional
 ?S:    binaries in this directory with
-?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
 ?S:vendorbinexp:
 ?S:    This variable is the ~name expanded version of vendorbin, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installvendorbin=''
 ?S:installvendorbin:
 ?S:    This variable is really the same as vendorbinexp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -46,7 +47,7 @@
 ?C:    The standard distribution will put nothing in this directory.
 ?C:    Vendors who distribute perl may wish to place additional
 ?C:    binaries in this directory with
-?C:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?C:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?C:    or equivalent.  See INSTALL for details.
 ?C:.
 ?C:PERL_VENDORBIN_EXP:
@@ -74,10 +75,6 @@ case "$vendorprefix" in
        vendorbinexp="$ansexp"
        ;;
 esac
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installvendorbin=`echo $vendorbinexp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installvendorbin="$vendorbinexp"
-fi
+prefixvar=vendorbin
+. ./installprefix
 
index 05acb0d..610dea7 100644 (file)
@@ -1,36 +1,37 @@
 ?RCS: $Id: vendorhtml1dir.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1999, Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: vendorhtml1dir.U,v $
 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
 ?RCS: Initial revision
 ?RCS:
 ?RCS:
 ?MAKE:vendorhtml1dir vendorhtml1direxp installvendorhtml1dir: html1dir Getfile \
-       Oldconfig Prefixit test vendorprefix prefix prefixexp sed \
-       installprefix installprefixexp
+       Setprefixvar Oldconfig Prefixit test vendorprefix prefix sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:vendorhtml1dir:
-?S:    This variable contains the name of the directory for html 
+?S:    This variable contains the name of the directory for html
 ?S:    pages.  It may have a ~ on the front.
 ?S:    The standard distribution will put nothing in this directory.
 ?S:    Vendors who distribute perl may wish to place their own
 ?S:    html pages in this directory with
-?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
 ?S:vendorhtml1direxp:
 ?S:    This variable is the ~name expanded version of vendorhtml1dir, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installvendorhtml1dir=''
 ?S:installvendorhtml1dir:
 ?S:    This variable is really the same as vendorhtml1direxp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -60,10 +61,6 @@ case "$vendorprefix" in
 esac
 : Use ' ' for none so value is preserved next time through Configure
 $test X"$vendorhtml1dir" = "X" && vendorhtml1dir=' '
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installvendorhtml1dir=`echo $vendorhtml1direxp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installvendorhtml1dir="$vendorhtml1direxp"
-fi
+prefixvar=vendorhtml1dir
+. ./installprefix
 
index 8b16250..556e8aa 100644 (file)
@@ -1,36 +1,37 @@
 ?RCS: $Id: vendorhtml3dir.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1999, Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: vendorhtml3dir.U,v $
 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
 ?RCS: Initial revision
 ?RCS:
 ?RCS:
 ?MAKE:vendorhtml3dir vendorhtml3direxp installvendorhtml3dir: html3dir Getfile \
-       Oldconfig Prefixit test vendorprefix prefix prefixexp sed \
-       installprefix installprefixexp
+       Oldconfig Setprefixvar Prefixit test vendorprefix prefix sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:vendorhtml3dir:
-?S:    This variable contains the name of the directory for html 
+?S:    This variable contains the name of the directory for html
 ?S:    library pages.  It may have a ~ on the front.
 ?S:    The standard distribution will put nothing in this directory.
 ?S:    Vendors who distribute perl may wish to place their own
 ?S:    html pages for modules and extensions in this directory with
-?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
 ?S:vendorhtml3direxp:
 ?S:    This variable is the ~name expanded version of vendorhtml3dir, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installvendorhtml3dir=''
 ?S:installvendorhtml3dir:
 ?S:    This variable is really the same as vendorhtml3direxp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -60,10 +61,6 @@ case "$vendorprefix" in
 esac
 : Use ' ' for none so value is preserved next time through Configure
 $test X"$vendorhtml3dir" = "X" && vendorhtml3dir=' '
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installvendorhtml3dir=`echo $vendorhtml3direxp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installvendorhtml3dir="$vendorhtml3direxp"
-fi
+prefixvar=vendorhtml3dir
+. ./installprefix
 
index 554a202..6b7f63e 100644 (file)
@@ -1,23 +1,23 @@
 ?RCS: $Id: vendorlib.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1999, Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: vendorlib.U,v $
 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
 ?RCS: Initial revision
 ?RCS:
 ?RCS:
-?MAKE:d_vendorlib vendorlib vendorlibexp installvendorlib \
-       vendorlib_stem: Getfile \
-       Oldconfig Prefixit test package vendorprefix prefix prefixexp sed \
-       installstyle installprefix installprefixexp version
+?MAKE:d_vendorlib vendorlib vendorlibexp installvendorlib vendorlib_stem: \
+       Getfile Setprefixvar Oldconfig Prefixit package vendorprefix sed \
+       installstyle version
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:vendorlib:
 ?S:    This variable contains the eventual value of the VENDORLIB symbol,
 ?S:    The standard distribution will put nothing in this directory.
 ?S:    Vendors who distribute perl may wish to place their own
 ?S:    modules in this directory with
-?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
 ?S:vendorlibexp:
 ?S:    This variable is the ~name expanded version of vendorlib, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installvendorlib=''
 ?S:installvendorlib:
 ?S:    This variable is really the same as vendorlibexp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -53,7 +54,7 @@
 ?C:    The standard distribution will put nothing in this directory.
 ?C:    Vendors who distribute perl may wish to place their own
 ?C:    modules in this directory with
-?C:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?C:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?C:    or equivalent.  See INSTALL for details.
 ?C:.
 ?C:PERL_VENDORLIB_EXP:
@@ -98,10 +99,6 @@ case "$vendorprefix" in
        ;;
 esac
 vendorlib_stem=`echo "$vendorlibexp" | sed "s,/$version$,,"`
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installvendorlib=`echo $vendorlibexp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installvendorlib="$vendorlibexp"
-fi
+prefixvar=vendorlib
+. ./installprefix
 
index 894e71a..c884dee 100644 (file)
@@ -1,36 +1,37 @@
 ?RCS: $Id: vendorman1dir.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1999, Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: vendorman1dir.U,v $
 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
 ?RCS: Initial revision
 ?RCS:
 ?RCS:
 ?MAKE:vendorman1dir vendorman1direxp installvendorman1dir: man1dir Getfile \
-       Oldconfig Prefixit test vendorprefix prefix prefixexp sed \
-       installprefix installprefixexp
+       Oldconfig Setprefixvar Prefixit test vendorprefix prefix sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:vendorman1dir:
-?S:    This variable contains the name of the directory for man1 
+?S:    This variable contains the name of the directory for man1
 ?S:    pages.  It may have a ~ on the front.
 ?S:    The standard distribution will put nothing in this directory.
 ?S:    Vendors who distribute perl may wish to place their own
 ?S:    man1 pages in this directory with
-?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
 ?S:vendorman1direxp:
 ?S:    This variable is the ~name expanded version of vendorman1dir, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installvendorman1dir=''
 ?S:installvendorman1dir:
 ?S:    This variable is really the same as vendorman1direxp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -57,10 +58,6 @@ case "$vendorprefix" in
 esac
 : Use ' ' for none so value is preserved next time through Configure
 $test X"$vendorman1dir" = "X" && vendorman1dir=' '
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installvendorman1dir=`echo "$vendorman1direxp" | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installvendorman1dir="$vendorman1direxp"
-fi
+prefixvar=vendorman1dir
+. ./installprefix
 
index 7965739..afdc8b1 100644 (file)
@@ -1,36 +1,37 @@
 ?RCS: $Id: vendorman3dir.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1999-2000, Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: vendorman3dir.U,v $
 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
 ?RCS: Initial revision
 ?RCS:
 ?RCS:
 ?MAKE:vendorman3dir vendorman3direxp installvendorman3dir: man3dir Getfile \
-       Oldconfig Prefixit test vendorprefix prefix prefixexp sed \
-       installprefix installprefixexp
+       Oldconfig Setprefixvar Prefixit test vendorprefix prefix sed
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:vendorman3dir:
-?S:    This variable contains the name of the directory for man3 
+?S:    This variable contains the name of the directory for man3
 ?S:    pages.  It may have a ~ on the front.
 ?S:    The standard distribution will put nothing in this directory.
 ?S:    Vendors who distribute perl may wish to place their own
 ?S:    man3 pages in this directory with
-?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
 ?S:vendorman3direxp:
 ?S:    This variable is the ~name expanded version of vendorman3dir, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installvendorman3dir=''
 ?S:installvendorman3dir:
 ?S:    This variable is really the same as vendorman3direxp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -57,10 +58,6 @@ case "$vendorprefix" in
 esac
 : Use ' ' for none so value is preserved next time through Configure
 $test X"$vendorman3dir" = "X" && vendorman3dir=' '
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installvendorman3dir=`echo "$vendorman3direxp" | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installvendorman3dir="$vendorman3direxp"
-fi
+prefixvar=vendorman3dir
+. ./installprefix
 
index bb9c7fe..a5f6155 100644 (file)
@@ -1,22 +1,22 @@
 ?RCS: $Id: vendorscript.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $
 ?RCS:
 ?RCS: Copyright (c) 1999, Andy Dougherty
-?RCS: 
+?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:
 ?RCS: $Log: vendorscript.U,v $
 ?RCS: Revision 1.1  1999/07/08 18:32:57  doughera
 ?RCS: Initial revision
 ?RCS:
 ?RCS:
-?MAKE:d_vendorscript vendorscript vendorscriptexp installvendorscript: \
-       vendorbin cat Getfile Oldconfig Prefixit test vendorprefix \
-       prefix prefixexp sed installprefix installprefixexp
+?MAKE:d_vendorscript vendorscript vendorscriptexp installvendorscript: Getfile \
+       vendorbin cat sed Setprefixvar Oldconfig Prefixit test vendorprefix
 ?MAKE: -pick add $@ %<
+?LINT:change prefixvar
 ?Y:TOP
 ?S:vendorscript:
 ?S:    This variable contains the eventual value of the VENDORSCRIPT symbol.
 ?S:    The standard distribution will put nothing in this directory.
 ?S:    Vendors who distribute perl may wish to place additional
 ?S:    executable scripts in this directory with
-?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?S:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?S:    or equivalent.  See INSTALL for details.
 ?S:.
 ?S:vendorscriptexp:
 ?S:    This variable is the ~name expanded version of vendorscript, so that you
 ?S:    may use it directly in Makefiles or shell scripts.
 ?S:.
+?D:installvendorscript=''
 ?S:installvendorscript:
 ?S:    This variable is really the same as vendorscriptexp but may differ on
 ?S:    those systems using AFS. For extra portability, only this variable
@@ -46,7 +47,7 @@
 ?C:    The standard distribution will put nothing in this directory.
 ?C:    Vendors who distribute perl may wish to place additional
 ?C:    executable scripts in this directory with
-?C:            MakeMaker Makefile.PL INSTALLDIRS=vendor 
+?C:            MakeMaker Makefile.PL INSTALLDIRS=vendor
 ?C:    or equivalent.  See INSTALL for details.
 ?C:.
 ?C:PERL_VENDORSCRIPT_EXP:
@@ -70,7 +71,7 @@ case "$vendorprefix" in
        esac
        $cat <<EOM
 
-The installation process will create a directory for 
+The installation process will create a directory for
 vendor-supplied scripts.
 
 EOM
@@ -81,10 +82,6 @@ EOM
        vendorscriptexp="$ansexp"
        ;;
 esac
-: Change installation prefix, if necessary.
-if $test X"$prefix" != X"$installprefix"; then
-       installvendorscript=`echo $vendorscriptexp | $sed "s#^$prefixexp#$installprefixexp#"`
-else
-       installvendorscript="$vendorscriptexp"
-fi
+prefixvar=vendorscript
+. ./installprefix