4 echo "Extracting Policy.sh (with variable substitutions)"
5 $spitshell <<!GROK!THIS! >Policy.sh
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
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.
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.
23 # The original design for this Policy.sh file came from Wayne Davison,
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.
30 # Site-specific values
32 perladmin='$perladmin'
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.
44 # Installation Prefix.
48 installbin='$installbin'
50 scriptdir='$scriptdir'
51 installscript='$installscript'
54 installprivlib='$installprivlib'
57 installsitelib='$installsitelib'
59 # man1 and man3 manpage directories and extensions.
62 installman1dir='$installman1dir'
65 installman3dir='$installman3dir'
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.
72 # If you have not accepted the default, then be sure to check the
73 # following lines before copying this file to another system.
77 if 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 }'`
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 }'`
87 dflt="$privlib/$archname/$version"
88 if test X"$archlib" = X"$dflt"; then
89 echo "# archlib='$archlib'"
90 echo "# installarchlib='$installarchlib'"
92 echo '# NOTE: Preserving your custom archlib.'
93 echo "archlib='$archlib'"
94 echo "installarchlib='$installarchlib'"
98 # Now consider sitearch.
99 dflt="$sitelib/$archname"
100 if test X"$sitearch" = X"$dflt"; then
101 echo "# sitearch='$sitearch'"
102 echo "# installsitearch='$installsitearch'"
104 echo '# NOTE: Preserving your custom sitearch.'
105 echo "sitearch='$sitearch'"
106 echo "installsitearch='$installsitearch'"
109 $spitshell <<!GROK!THIS! >>Policy.sh
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.
116 # A full Glossary of all the config.sh variables is in the file