forked from IRATI/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-user-from-scratch
executable file
·40 lines (32 loc) · 1.22 KB
/
install-user-from-scratch
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
#!/bin/sh
# -*- sh -*-
#
# Written by: Francesco Salvestrini <f DOT salvestrini AT nextworks DOT it>
#
ME=install-user-from-scratch
#MAKEFLAGS="-j"
PREFIX=`echo "$1"|sed -e "s,\/$,,"`
echo "$ME: Prefix is \`$PREFIX'"
if test -n "$PREFIX" ; then
mkdir -p $PREFIX || {
echo "$ME: Cannot create directory \`$PREFIX'"
}
fi
#
# FIXME: we should definitely do a VPATH build ...
#
echo "$ME: Starting librina phase"
(cd librina && ./bootstrap && ./configure --enable-java-bindings --with-sysheaders=`pwd`/../linux/usr/include --prefix=$PREFIX && make $MAKEFLAGS clean install installcheck) || {
echo "$ME: Cannot complete librina phase"
exit 1
}
echo "$ME: Starting rinad phase"
(cd rinad && ./bootstrap && PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH ./configure --prefix=$PREFIX && make $MAKEFLAGS clean install installcheck) || {
echo "$ME: Cannot complete rinad phase"
exit 1
}
echo "$ME: Starting rina-tools phase"
(cd rina-tools && ./bootstrap && PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH ./configure --prefix=$PREFIX && make $MAKEFLAGS clean all install installcheck) || {
echo "$ME: Cannot complete rina-tools phase"
exit 1
}