-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·25 lines (18 loc) · 923 Bytes
/
configure
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
#!/bin/sh
PREFIX="/usr/local"
# configure local pschemes
script_dir=$(dirname $(realpath $0))
localconfig="(\"-I${script_dir}/scm\" \"-L${script_dir}/runtime/pscheme-runtime.a\" \"-ldwarf\")"
echo $localconfig > .pscheme1-pscmconfig
echo $localconfig > .pscheme-pscmconfig
echo $localconfig > .pscheme-dev-pscmconfig
# configure install pscheme
echo "(\"-I${PREFIX}/share/pscheme\" \"-L${PREFIX}/lib/pscheme-runtime.a\" \"-ldwarf\")" > .pscheme-prefix-pscmconfig
rm install-list
echo "./runtime/pscheme-runtime.a ${PREFIX}/lib/pscheme-runtime.a" >> install-list
echo "./pscheme ${PREFIX}/bin/pscheme" >> install-list
echo ".pscheme-prefix-pscmconfig ${PREFIX}/bin/.pscheme-pscmconfig" >> install-list
for libfile in `(cd scm && find -name '*.scm')`; do
echo "scm/${libfile} ${PREFIX}/share/pscheme/${libfile}" >> install-list
echo "scm/${libfile}.o ${PREFIX}/share/pscheme/${libfile}.o" >> install-list
done