1 ?RCS: $Id: sitescript.U,v $
3 ?RCS: Copyright (c) 1999 Andy Dougherty
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
11 ?RCS: $Log: sitescript.U,v $
13 ?MAKE:sitescript sitescriptexp installsitescript : Getfile Oldconfig test \
14 sitebin prefix siteprefix sed installprefix
15 ?MAKE: -pick add $@ %<
18 ?S: This variable holds the name of the directory in which the user wants
19 ?S: to put add-on publicly executable files for the package in question. It
20 ?S: is most often a local directory such as /usr/local/bin. Programs using
21 ?S: this variable must be prepared to deal with ~name substitution.
22 ?S: The standard distribution will put nothing in this directory.
23 ?S: After perl has been installed, users may install their own local
24 ?S: scripts in this directory with
25 ?S: MakeMaker Makefile.PL
26 ?S: or equivalent. See INSTALL for details.
29 ?S: This is the same as the sitescript variable, but is filename expanded at
30 ?S: configuration time, for use in your makefiles.
33 ?S: This variable is usually the same as sitescriptexp, unless you are on
34 ?S: a system running AFS, in which case they may differ slightly. You
35 ?S: should always use this variable within your makefiles for portability.
37 : determine where add-on public executable scripts go
39 '') dflt=$siteprefix/script
40 $test -d $dflt || dflt=$sitebin ;;
41 *) dflt="$sitescript" ;;
44 rp='Pathname where add-on public executable scripts should be installed?'
47 sitescriptexp="$ansexp"
48 : Change installation prefix, if necessary.
49 if $test X"$prefix" != X"$installprefix"; then
50 installsitescript=`echo $sitescriptexp | sed "s#^$prefix#$installprefix#"`
52 installsitescript="$sitescriptexp"