Configure patches -01 and -02 for 5.004_61.
[p5sagit/p5-mst-13.2.git] / Policy_sh.SH
1 case $CONFIG in
2 '') . ./config.sh ;;
3 esac
4 echo "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
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.
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
32 perladmin='$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.
43
44 # Installation Prefix.
45 prefix='$prefix'
46
47 bin='$bin'
48 installbin='$installbin'
49
50 scriptdir='$scriptdir'
51 installscript='$installscript'
52
53 privlib='$privlib'
54 installprivlib='$installprivlib'
55
56 sitelib='$sitelib'
57 installsitelib='$installsitelib'
58
59 # man1 and man3 manpage directories and extensions.
60 man1dir='$man1dir'
61 man1ext='$man1ext'
62 installman1dir='$installman1dir'
63 man3dir='$man3dir'
64 man3ext='$man3ext'
65 installman3dir='$installman3dir'
66
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
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 }'`
81 else
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 }'`
85 fi
86
87 dflt="$privlib/$archname/$version"
88 if test X"$archlib" = X"$dflt"; then
89     echo "# archlib='$archlib'"
90     echo "# installarchlib='$installarchlib'"
91 else
92     echo '# NOTE:  Preserving your custom archlib.'
93     echo "archlib='$archlib'"
94     echo "installarchlib='$installarchlib'"
95 fi >> Policy.sh
96 echo >> Policy.sh
97
98 # Now consider sitearch.
99 dflt="$sitelib/$archname"
100 if test X"$sitearch" = X"$dflt"; then
101     echo "# sitearch='$sitearch'"
102     echo "# installsitearch='$installsitearch'"
103 else
104     echo '# NOTE:  Preserving your custom sitearch.'
105     echo "sitearch='$sitearch'"
106     echo "installsitearch='$installsitearch'"
107 fi >> 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.
114 # $pager='$pager'
115 #
116 #  A full Glossary of all the config.sh variables is in the file
117 #  Porting/Glossary.
118
119 !GROK!THIS!