This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
91369ba89f3c70203a361362358fd12cc1b1b01f
[metaconfig.git] / U / installdirs / sitehtml1.U
1 ?RCS: $Id$
2 ?RCS:
3 ?RCS: Copyright (c) 1999 Jarkko Hietaniemi
4 ?RCS:
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.
10 ?RCS:
11 ?MAKE:sitehtml1 sitehtml1exp installsitehtml1: Getfile Setprefixvar \
12         prefix siteprefix html1dir sed
13 ?MAKE:  -pick add $@ %<
14 ?Y:TOP
15 ?D:sitehtml1=''
16 ?S:sitehtml1:
17 ?S:     This variable contains the name of the directory in which site-specific
18 ?S:     html source pages are to be put.  It is the responsibility of the
19 ?S:     Makefile.SH to get the value of this into the proper command.
20 ?S:     You must be prepared to do the ~name expansion yourself.
21 ?S:     The standard distribution will put nothing in this directory.
22 ?S:     After perl has been installed, users may install their own local
23 ?S:     html pages in this directory with
24 ?S:             MakeMaker Makefile.PL
25 ?S:     or equivalent.  See INSTALL for details.
26 ?S:.
27 ?D:sitehtml1exp=''
28 ?S:sitehtml1exp:
29 ?S:     This variable is the same as the sitehtml1 variable, but is filename
30 ?S:     expanded at configuration time, for convenient use in makefiles.
31 ?S:.
32 ?D:installsitehtml1=''
33 ?S:installsitehtml1:
34 ?S:     This variable is really the same as sitehtml1exp, unless you are using
35 ?S:     AFS in which case it points to the read/write location whereas
36 ?S:     html1direxp only points to the read-only access location. For extra
37 ?S:     portability, you should only use this variable within your makefiles.
38 ?S:.
39 ?LINT:change prefixvar
40 ?LINT:set installsitehtml1
41 ?LINT:set sitehtml1
42 ?LINT:set sitehtml1exp
43 : determine where add-on html pages go
44 : There is no standard location, so try to copy the previously-selected
45 : directory structure for the core html pages.
46 case "$sitehtml1" in
47 '')     dflt=`echo "$html1dir" | $sed "s#^$prefix#$siteprefix#"` ;;
48 *)      dflt=$sitehtml1 ;;
49 esac
50 case "$dflt" in
51 ''|' ') dflt=none ;;
52 esac
53 fn=dn+~
54 rp='Pathname where the site-specific html pages should be installed?'
55 . ./getfile
56 prefixvar=sitehtml1
57 . ./setprefixvar
58