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". 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.
22 # Allow Configure command-line overrides; usually these won't be
23 # needed, but something like -Dprefix=/test/location can be quite
24 # useful for testing out new versions.
26 #Site-specific values:
29 '') perladmin='$perladmin' ;;
32 # Installation prefix. Allow a Configure -D override. You
33 # may wish to reinstall perl under a different prefix, perhaps
34 # in order to test a different configuration.
36 '') prefix='$prefix' ;;
39 # Installation directives. Note that each one comes in three flavors.
40 # For example, we have privlib, privlibexp, and installprivlib.
41 # privlib is for private (to perl) library files.
42 # privlibexp is the same, except any '~' the user gave to Configure
43 # is expanded to the user's home directory. This is figured
44 # out automatically by Configure, so you don't have to include it here.
45 # installprivlib is for systems (such as those running AFS) that
46 # need to distinguish between the place where things
47 # get installed and where they finally will reside.
49 # In each case, if your previous value was the default, leave it commented
50 # out. That way, if you override prefix, all of these will be
51 # automatically adjusted.
53 # WARNING: Be especially careful about architecture-dependent and
54 # version-dependent names, particularly if you reuse this file for
55 # different versions of perl.
59 for var in bin scriptdir privlib archlib \
60 man1dir man3dir sitelib sitearch \
61 installbin installscript installprivlib installarchlib \
62 installman1dir installman3dir installsitelib installsitearch \
66 bin) dflt=$prefix/bin ;;
67 # The scriptdir test is more complex, but this is probably usually ok.
69 if $test -d $prefix/script; then
77 *perl*) dflt=$prefix/lib/$version ;;
78 *) dflt=$prefix/lib/$package/$version ;;
83 *perl*) dflt=$prefix/lib/$version/$archname ;;
84 *) dflt=$prefix/lib/$package/$version/$archname ;;
89 *perl*) dflt=$prefix/lib/site_perl/$apiversion ;;
90 *) dflt=$prefix/lib/$package/site_perl/$apiversion ;;
95 *perl*) dflt=$prefix/lib/site_perl/$apiversion/$archname ;;
96 *) dflt=$prefix/lib/$package/site_perl/$apiversion/$archname ;;
99 man1dir) dflt="$prefix/man/man1" ;;
102 *perl*) dflt=`echo $man1dir |
103 sed -e 's/man1/man3/g' -e 's/man\.1/man\.3/g'` ;;
104 *) dflt=$privlib/man/man3 ;;
108 # Can we assume all sed's have greedy matching?
109 man1ext) dflt=`echo $man1dir | sed -e 's!.*man!!' -e 's!^\.!!'` ;;
110 man3ext) dflt=`echo $man3dir | sed -e 's!.*man!!' -e 's!^\.!!'` ;;
112 # It might be possible to fool these next tests. Please let
113 # me know if they don't work right for you.
114 installbin) dflt=`echo $binexp | sed 's#^/afs/#/afs/.#'`;;
115 installscript) dflt=`echo $scriptdirexp | sed 's#^/afs/#/afs/.#'`;;
116 installprivlib) dflt=`echo $privlibexp | sed 's#^/afs/#/afs/.#'`;;
117 installarchlib) dflt=`echo $archlibexp | sed 's#^/afs/#/afs/.#'`;;
118 installsitelib) dflt=`echo $sitelibexp | sed 's#^/afs/#/afs/.#'`;;
119 installsitearch) dflt=`echo $sitearchexp | sed 's#^/afs/#/afs/.#'`;;
120 installman1dir) dflt=`echo $man1direxp | sed 's#^/afs/#/afs/.#'`;;
121 installman3dir) dflt=`echo $man3direxp | sed 's#^/afs/#/afs/.#'`;;
125 if test X"$val" = X"$dflt"; then
126 echo "# $var='$dflt'"
128 echo "# Preserving custom $var"
134 $spitshell <<!GROK!THIS! >>Policy.sh
136 # Lastly, you may add additional items here. For example, to set the
137 # pager to your local favorite value, uncomment the following line in
138 # the original Policy_sh.SH file and re-run sh Policy_sh.SH.
142 # A full Glossary of all the config.sh variables is in the file
148 # The original design for this Policy.sh file came from Wayne Davison,
150 # This version for Perl5.004_61 originally written by
151 # Andy Dougherty <doughera@lafcol.lafayette.edu>.
152 # This file may be distributed under the same terms as Perl itself.