This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlrun.pod: PERL_DEBUG_MSTATS
[perl5.git] / Policy_sh.SH
CommitLineData
85364e4e
MB
1case $CONFIG in
2'') . ./config.sh ;;
3esac
4echo "Extracting Policy.sh (with variable substitutions)"
5$spitshell <<!GROK!THIS! >Policy.sh
6$startsh
7#
8# This file was produced by running the Policy_sh.SH script, which
9# gets its values from config.sh, which is generally produced by
693762b4
AD
10# running Configure. The Policy.sh file gets overwritten each time
11# Configure is run. Any variables you add to Policy.sh will be lost
12# unless you copy Policy.sh somewhere else before running Configure.
85364e4e
MB
13#
14# The idea here is to distill in one place the common site-wide
15# "policy" answers (such as installation directories) that are
16# to be "sticky". That is, if you keep the file Policy.sh around in
17# the same directory as you are building Perl, then Configure will
18# (by default) load up the Policy.sh file just before the
19# platform-specific hints file.
20#
21
22#Credits:
23# The original design for this Policy.sh file came from Wayne Davison,
24# maintainer of trn.
25# This version for Perl5.004_61 originally written by
26# Andy Dougherty <doughera@lafcol.lafayette.edu>.
27# This file may be distributed under the same terms as Perl itself.
28
29
30# Site-specific values
31
32perladmin='$perladmin'
33
34# Installation directives. Note that each one comes in three flavors.
35# For example, we have privlib, privlibexp, and installprivlib.
36# privlib is for private (to perl) library files.
37# privlibexp is the same, expcept any '~' the user gave to Configure
38# is expanded to the user's home directory. This is figured
39# out automatically by Configure, so you don't have to include it here.
40# installprivlib is for systems (such as those running AFS) that
41# need to distinguish between the place where things
42# get installed and where they finally will reside.
85364e4e
MB
43
44# Installation Prefix.
45prefix='$prefix'
46
47bin='$bin'
48installbin='$installbin'
49
50scriptdir='$scriptdir'
51installscript='$installscript'
52
53privlib='$privlib'
54installprivlib='$installprivlib'
55
85364e4e
MB
56sitelib='$sitelib'
57installsitelib='$installsitelib'
58
59# man1 and man3 manpage directories and extensions.
60man1dir='$man1dir'
61man1ext='$man1ext'
62installman1dir='$installman1dir'
63man3dir='$man3dir'
64man3ext='$man3ext'
65installman3dir='$installman3dir'
66
693762b4
AD
67# NOTE: Be careful about architecture-dependent names. If you have
68# accepted the default, the following definitions will be commented out.
69# That way you can carry this file to another architecture and this file
70# won't mistakenly set architecture-dependent names to the wrong value.
71#
72# If you have not accepted the default, then be sure to check the
73# following lines before copying this file to another system.
74
75!GROK!THIS!
76
77if test 0 -eq "$subversion"; then
78 version=`LC_ALL=C; export LC_ALL; \
79 echo $baserev $patchlevel |
80 $awk '{ printf "%.3f\n", $1 + $2/1000.0 }'`
81else
82 version=`LC_ALL=C; export LC_ALL; \
83 echo $baserev $patchlevel $subversion | \
84 $awk '{ printf "%.5f\n", $1 + $2/1000.0 + $3/100000.0 }'`
85fi
86
87dflt="$privlib/$archname/$version"
88if test X"$archlib" = X"$dflt"; then
89 echo "# archlib='$archlib'"
90 echo "# installarchlib='$installarchlib'"
91else
92 echo '# NOTE: Preserving your custom archlib.'
93 echo "archlib='$archlib'"
94 echo "installarchlib='$installarchlib'"
95fi >> Policy.sh
96echo >> Policy.sh
97
98# Now consider sitearch.
99dflt="$sitelib/$archname"
100if test X"$sitearch" = X"$dflt"; then
101 echo "# sitearch='$sitearch'"
102 echo "# installsitearch='$installsitearch'"
103else
104 echo '# NOTE: Preserving your custom sitearch.'
105 echo "sitearch='$sitearch'"
106 echo "installsitearch='$installsitearch'"
107fi >> Policy.sh
108
109$spitshell <<!GROK!THIS! >>Policy.sh
110
111# Lastly, you may add additional items here. For example, to set the
112# pager to your local favorite value, uncomment the following line in
113# the original Policy_sh.SH file and re-run sh Policy_sh.SH.
63c30342 114# pager='$pager'
693762b4
AD
115#
116# A full Glossary of all the config.sh variables is in the file
117# Porting/Glossary.
85364e4e
MB
118
119!GROK!THIS!