This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Populate metaconfig branch.
[metaconfig.git] / U / installdirs / bin.U
1 ?RCS: $Id: bin.U,v 3.1 1999/07/09 18:20:13 doughera Exp doughera $
2 ?RCS:
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4 ?RCS: 
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:
11 ?RCS: $Log: bin.U,v $
12 ?RCS: Revision 3.1  1999/07/09 18:20:13  doughera
13 ?RCS: Updated for installprefix
14 ?RCS:
15 ?RCS: Revision 3.0.1.4  1995/09/25  09:15:32  ram
16 ?RCS: patch59: unit is now forced to the top of Configure, if possible
17 ?RCS:
18 ?RCS: Revision 3.0.1.3  1995/01/30  14:32:40  ram
19 ?RCS: patch49: can now handle installation prefix changes (from WED)
20 ?RCS:
21 ?RCS: Revision 3.0.1.2  1994/08/29  16:05:28  ram
22 ?RCS: patch32: now uses installation prefix
23 ?RCS:
24 ?RCS: Revision 3.0.1.1  1993/09/13  15:56:51  ram
25 ?RCS: patch10: made prompting more explicit (WAD)
26 ?RCS:
27 ?RCS: Revision 3.0  1993/08/18  12:05:26  ram
28 ?RCS: Baseline for dist 3.0 netwide release.
29 ?RCS:
30 ?MAKE:bin binexp installbin: Prefixit prefix installprefix \
31         Getfile Oldconfig test
32 ?MAKE:  -pick add $@ %<
33 ?Y:TOP
34 ?S:bin:
35 ?S:     This variable holds the name of the directory in which the user wants
36 ?S:     to put publicly executable images for the package in question.  It
37 ?S:     is most often a local directory such as /usr/local/bin. Programs using
38 ?S:     this variable must be prepared to deal with ~name substitution.
39 ?S:.
40 ?S:binexp:
41 ?S:     This is the same as the bin variable, but is filename expanded at
42 ?S:     configuration time, for use in your makefiles.
43 ?S:.
44 ?S:installbin:
45 ?S:     This variable is the same as binexp unless AFS is running in which case
46 ?S:     the user is explicitely prompted for it. This variable should always
47 ?S:     be used in your makefiles for maximum portability.
48 ?S:.
49 ?C:BIN:
50 ?C:     This symbol holds the path of the bin directory where the package will
51 ?C:     be installed. Program must be prepared to deal with ~name substitution.
52 ?C:.
53 ?C:BIN_EXP:
54 ?C:     This symbol is the filename expanded version of the BIN symbol, for
55 ?C:     programs that do not want to deal with that at run-time.
56 ?C:.
57 ?H:#define BIN "$bin"   /**/
58 ?H:#define BIN_EXP "$binexp"    /**/
59 ?H:.
60 ?D:bin='/usr/local/bin'
61 : determine where public executables go
62 echo " "
63 set dflt bin bin
64 eval $prefixit
65 fn=d~
66 rp='Pathname where the public executables will reside?'
67 . ./getfile
68 if $test "X$ansexp" != "X$binexp"; then
69         installbin=''
70 fi
71 bin="$ans"
72 binexp="$ansexp"
73 : Change installation prefix, if necessary.
74 : XXX Bug? -- ignores Configure -Dinstallprefix setting.
75 if $test X"$prefix" != X"$installprefix"; then
76         installbin=`echo $binexp | sed 's#^$prefix#$installprefix#'`
77 else
78         installbin="$binexp"
79 fi
80