| 1 |
?RCS: $Id: sitescript.U,v $ |
| 2 |
?RCS: |
| 3 |
?RCS: Copyright (c) 1999 Andy Dougherty |
| 4 |
?RCS: |
| 5 |
?RCS: You may redistribute only under the terms of the Artistic License, |
| 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 License; a copy of which may be found at the root |
| 9 |
?RCS: of the source tree for dist 3.0. |
| 10 |
?RCS: |
| 11 |
?RCS: $Log: sitescript.U,v $ |
| 12 |
?RCS: |
| 13 |
?MAKE:sitescript sitescriptexp installsitescript : Getfile Oldconfig test \ |
| 14 |
Setprefixvar sitebin siteprefix |
| 15 |
?MAKE: -pick add $@ %< |
| 16 |
?Y:TOP |
| 17 |
?D:sitescript='' |
| 18 |
?S:sitescript: |
| 19 |
?S: This variable holds the name of the directory in which the user wants |
| 20 |
?S: to put add-on publicly executable files for the package in question. It |
| 21 |
?S: is most often a local directory such as /usr/local/bin. Programs using |
| 22 |
?S: this variable must be prepared to deal with ~name substitution. |
| 23 |
?S: The standard distribution will put nothing in this directory. |
| 24 |
?S: After perl has been installed, users may install their own local |
| 25 |
?S: scripts in this directory with |
| 26 |
?S: MakeMaker Makefile.PL |
| 27 |
?S: or equivalent. See INSTALL for details. |
| 28 |
?S:. |
| 29 |
?D:sitescriptexp='' |
| 30 |
?S:sitescriptexp: |
| 31 |
?S: This is the same as the sitescript variable, but is filename expanded at |
| 32 |
?S: configuration time, for use in your makefiles. |
| 33 |
?S:. |
| 34 |
?D:installsitescript='' |
| 35 |
?S:installsitescript: |
| 36 |
?S: This variable is usually the same as sitescriptexp, unless you are on |
| 37 |
?S: a system running AFS, in which case they may differ slightly. You |
| 38 |
?S: should always use this variable within your makefiles for portability. |
| 39 |
?S:. |
| 40 |
?LINT:change prefixvar |
| 41 |
?LINT:set installsitescript |
| 42 |
?LINT:set sitescript |
| 43 |
?LINT:set sitescriptexp |
| 44 |
: determine where add-on public executable scripts go |
| 45 |
case "$sitescript" in |
| 46 |
'') dflt=$siteprefix/script |
| 47 |
$test -d $dflt || dflt=$sitebin ;; |
| 48 |
*) dflt="$sitescript" ;; |
| 49 |
esac |
| 50 |
fn=d~+ |
| 51 |
rp='Pathname where add-on public executable scripts should be installed?' |
| 52 |
. ./getfile |
| 53 |
prefixvar=sitescript |
| 54 |
. ./setprefixvar |
| 55 |
|