blob: 001df85e9a7a248a8f404f0384b919700b01307b (
plain)
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
|
#!/bin/sh
project="$1"
branch="$2"
cfg="$3"
set -e
set +x
echo
echo
echo
echo " =============================== $project ==============================="
echo
if [ -z "$project" ]; then
echo "internal failure: \$project is empty"
exit 1
fi
if [ -z "$deps" ]; then
echo "internal failure: \$deps is empty"
exit 1
fi
if [ -z "$inst" ]; then
echo "internal failure: \$inst is empty"
exit 1
fi
if [ -z "$MAKE" ]; then
echo "internal failure: \$MAKE is empty"
exit 1
fi
set -x
mkdir -p "$deps"
cd "$deps"
rm -rf "$project"
osmo-deps.sh "$project"
cd "$project"
if [ -n "$branch" ]; then
git checkout "$branch"
fi
git rev-parse HEAD # log current HEAD
autoreconf --install --force
./configure --prefix="$inst" $cfg
$MAKE $PARALLEL_MAKE install
|