-
Notifications
You must be signed in to change notification settings - Fork 51
/
bootstrap-bundle
executable file
·56 lines (39 loc) · 1.17 KB
/
bootstrap-bundle
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
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
set -e
profile_name="$1"
if test -z "$profile_name"; then
case "$(uname)" in
Linux) profile_name=linux ;;
Darwin) profile_name=darwin ;;
*)
echo "Unsupported system type: $(uname)"
exit 1
;;
esac
fi
profile="$profile_name.py"
if ! test -f "../bockbuild/profiles/banshee/$profile"; then
echo "Profile does not exist: build/bundle/$profile"
exit 1
fi
selfdir="$(pwd)/$(dirname "$0")"
envfile="$selfdir/$profile_name.env"
pushd ../bockbuild/profiles/banshee &>/dev/null
./$profile -bv
./$profile -e > "$envfile"
popd &>/dev/null
[ $profile_name = darwin ] && \
echo "export GTK2_RC_FILES=\"$selfdir/../../bockbuild/profiles/banshee/skeleton.darwin/Contents/Resources/etc/gtk-2.0/gtkrc\"" >> "$envfile"
source "$envfile"
NOCONFIGURE=1 ./autogen.sh
./profile-configure $profile_name --prefix="$BUILD_PREFIX"
cat <<EOF
The world has built! You can now build Banshee.
Be sure to source in the profile environment:
$ source $profile_name.env
Once sourced, just run autogen/configure/make, etc
as normal. The install prefix is available as the
BUILD_PREFIX environment variable - e.g.:
$ ./autogen.sh --prefix="\$BUILD_PREFIX"
Have fun!
EOF