-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·48 lines (38 loc) · 1.32 KB
/
Copy pathconfigure
File metadata and controls
executable file
·48 lines (38 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
export MAKL_DIR="`pwd`"
export makl_conf_h="/dev/null"
. "${MAKL_DIR}"/cf/makl.init
makl_args_init "$@"
# accept override from the command line
makl_args_def \
"gnu_make" \
"=GNUMAKEPATH" "" \
"set GNU make executable path on this system"
__makl_gnu_make ()
{
[ $# -eq 1 ] || makl_err 1 "--gnu_make needs one argument"
makl_set_var_mk GNU_MAKE "$@"
}
makl_args_def \
"bourne_shell" \
"=BOURNESHELLPATH" "" \
"set Bourne shell executable path on this system"
__makl_bourne_shell ()
{
[ $# -eq 1 ] || makl_err 1 "--bourne_shell needs one argument"
makl_set_var_mk BOURNE_SHELL "$@"
}
makl_args_handle "$@"
makl_set_var_mk MAKL_ROOT "`makl_get_var_mk SHAREDIR`/makl-`cat VERSION`"
# prerequisite is GNU_MAKE variable set
[ -z `makl_get_var_mk GNU_MAKE` ] && \
makl_err 1 "set GNU make path using --gnu_make command line switch"
# if Bourne shell path has not been set in the command line, set the default
[ -z `makl_get_var_mk BOURNE_SHELL` ] && \
makl_set_var_mk "BOURNE_SHELL" "/bin/sh"
makl_file_sub "bin/maklsh" \
"bin/lib/maklsh_catalog" \
"bin/lib/maklsh_tc" \
"bin/lib/maklsh_run" \
"bin/lib/maklsh_funcs"
. "${MAKL_DIR}"/cf/makl.term