pike.git/
lib/
master.pike.in
Branch:
Tag:
Non-build tags
All tags
No tags
1998-04-17
1998-04-17 21:29:11 by Mirar (Pontus Hagland) <pike@sort.mirar.org>
fc33d2c465095a766865f996e28316a5b347ae40 (
25
lines) (+
15
/-
10
)
[
Show
|
Annotate
]
Branch:
7.9
using --datadir option for share files
Rev: lib/master.pike.in:1.10
Rev: src/Makefile.in:1.76
1:
-
/* $Id: master.pike.in,v 1.
9
1998/04/
16
02
:
13
:
09
hubbe
Exp $
+
/* $Id: master.pike.in,v 1.
10
1998/04/
17
21
:
29
:
11
mirar
Exp $
* * Master-file for Pike. *
508:
_master_file_name=backtrace()[-1][0]; q=explode_path(_master_file_name);
-
pike_library_path = combine_path_with_cwd(q[0..sizeof(q)-2] * "/");
+
-
+
// add path for architecture-shared files
+
add_include_path("¤data_prefix¤/pike/include");
+
add_module_path("¤data_prefix¤/pike/modules");
+
+
// add path for architecture-dependant files
+
add_include_path("¤lib_prefix¤/include");
+
add_module_path("¤lib_prefix¤/modules");
+
+
// add path for wherever the master is now
add_include_path(pike_library_path+"/include"); add_module_path(pike_library_path+"/modules");
-
a = replace(
pike_library_
path+"/",
"/lib/", "/share/");
-
if (a !
=
pike
_
library
_
path+"/") {
-
array st;
-
if ((st = file
_
stat
(
a)) && (
sizeof(
st
)
) && (st[1] ==
-2
))
{
-
add_include_path(a+
"/
include
");
-
add_module_path(a+"/modules");
-
}
-
}
+
pike_library_
path
=
combine
_
path
_
with
_
cwd
(
q[0..
sizeof(
q
)-2
]
*
"/");
-
+
add_include_path(pike_library_path+"/include");
+
add_module_path(pike_library_path+"/modules");
+
add_program_path(getcwd()); add_module_path(getcwd());