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