Commit | Line | Data |
---|---|---|
33a01fd2 | 1 | ?RCS: $Id$ |
d8875586 MBT |
2 | ?RCS: |
3 | ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi | |
cf39bd7e | 4 | ?RCS: |
33a01fd2 | 5 | ?RCS: You may redistribute only under the terms of the Artistic License, |
d8875586 MBT |
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 | |
33a01fd2 | 8 | ?RCS: that same Artistic License; a copy of which may be found at the root |
d8875586 MBT |
9 | ?RCS: of the source tree for dist 4.0. |
10 | ?RCS: | |
11 | ?RCS: $Log: bin.U,v $ | |
12 | ?RCS: Revision 3.0.1.4 1995/09/25 09:15:32 ram | |
13 | ?RCS: patch59: unit is now forced to the top of Configure, if possible | |
14 | ?RCS: | |
15 | ?RCS: Revision 3.0.1.3 1995/01/30 14:32:40 ram | |
16 | ?RCS: patch49: can now handle installation prefix changes (from WED) | |
17 | ?RCS: | |
18 | ?RCS: Revision 3.0.1.2 1994/08/29 16:05:28 ram | |
19 | ?RCS: patch32: now uses installation prefix | |
20 | ?RCS: | |
21 | ?RCS: Revision 3.0.1.1 1993/09/13 15:56:51 ram | |
22 | ?RCS: patch10: made prompting more explicit (WAD) | |
23 | ?RCS: | |
24 | ?RCS: Revision 3.0 1993/08/18 12:05:26 ram | |
25 | ?RCS: Baseline for dist 3.0 netwide release. | |
26 | ?RCS: | |
27 | ?MAKE:bin binexp installbin: Prefixit Getfile Oldconfig afs cat test | |
28 | ?MAKE: -pick add $@ %< | |
29 | ?Y:TOP | |
30 | ?S:bin: | |
31 | ?S: This variable holds the name of the directory in which the user wants | |
32 | ?S: to put publicly executable images for the package in question. It | |
33 | ?S: is most often a local directory such as /usr/local/bin. Programs using | |
34 | ?S: this variable must be prepared to deal with ~name substitution. | |
35 | ?S:. | |
36 | ?S:binexp: | |
37 | ?S: This is the same as the bin variable, but is filename expanded at | |
38 | ?S: configuration time, for use in your makefiles. | |
39 | ?S:. | |
40 | ?S:installbin: | |
41 | ?S: This variable is the same as binexp unless AFS is running in which case | |
75e25e37 | 42 | ?S: the user is explicitly prompted for it. This variable should always |
d8875586 MBT |
43 | ?S: be used in your makefiles for maximum portability. |
44 | ?S:. | |
45 | ?C:BIN: | |
46 | ?C: This symbol holds the path of the bin directory where the package will | |
47 | ?C: be installed. Program must be prepared to deal with ~name substitution. | |
48 | ?C:. | |
49 | ?C:BIN_EXP: | |
50 | ?C: This symbol is the filename expanded version of the BIN symbol, for | |
51 | ?C: programs that do not want to deal with that at run-time. | |
52 | ?C:. | |
53 | ?H:#define BIN "$bin" /**/ | |
54 | ?H:#define BIN_EXP "$binexp" /**/ | |
55 | ?H:. | |
56 | ?D:bin='/usr/local/bin' | |
57 | : determine where public executables go | |
58 | echo " " | |
59 | set dflt bin bin | |
60 | eval $prefixit | |
61 | fn=d~ | |
62 | rp='Pathname where the public executables will reside?' | |
63 | . ./getfile | |
64 | if $test "X$ansexp" != "X$binexp"; then | |
65 | installbin='' | |
66 | fi | |
67 | bin="$ans" | |
68 | binexp="$ansexp" | |
69 | if $afs; then | |
70 | $cat <<EOM | |
71 | ||
72 | Since you are running AFS, I need to distinguish the directory in which | |
73 | executables reside from the directory in which they are installed (and from | |
74 | which they are presumably copied to the former directory by occult means). | |
75 | ||
76 | EOM | |
77 | case "$installbin" in | |
78 | '') dflt=`echo $binexp | sed 's#^/afs/#/afs/.#'`;; | |
79 | *) dflt="$installbin";; | |
80 | esac | |
81 | fn=de~ | |
82 | rp='Where will public executables be installed?' | |
83 | . ./getfile | |
84 | installbin="$ans" | |
85 | else | |
86 | installbin="$binexp" | |
87 | fi | |
88 |