[l10n] Updated German translation
[banshee:bl8-clone.git] / bootstrap-bundle
1 #!/usr/bin/env bash
2
3 set -e
4
5 profile_name="$1"
6
7 if test -z "$profile_name"; then
8         case "$(uname)" in
9                 Linux) profile_name=linux ;;
10                 Darwin) profile_name=darwin ;;
11                 *)
12                         echo "Unsupported system type: $(uname)"
13                         exit 1
14                         ;;
15         esac
16 fi
17
18 profile="$profile_name.py"
19
20 if ! test -f "../bockbuild/profiles/banshee/$profile"; then
21         echo "Profile does not exist: build/bundle/$profile"
22         exit 1
23 fi
24
25 selfdir="$(pwd)/$(dirname "$0")"
26 envfile="$selfdir/$profile_name.env"
27
28 pushd ../bockbuild/profiles/banshee &>/dev/null
29 ./$profile -bv
30 ./$profile -e > "$envfile"
31 popd &>/dev/null
32
33 [ $profile_name = darwin ] && \
34         echo "export GTK2_RC_FILES=\"$selfdir/../../bockbuild/profiles/banshee/skeleton.darwin/Contents/Resources/etc/gtk-2.0/gtkrc\"" >> "$envfile"
35
36 source "$envfile"
37
38 NOCONFIGURE=1 ./autogen.sh
39 ./profile-configure $profile_name --prefix="$BUILD_PREFIX"
40
41 cat <<EOF
42
43 The world has built! You can now build Banshee.
44 Be sure to source in the profile environment:
45
46   $ source $profile_name.env
47
48 Once sourced, just run autogen/configure/make, etc
49 as normal. The install prefix is available as the
50 BUILD_PREFIX environment variable - e.g.:
51
52   $ ./autogen.sh --prefix="\$BUILD_PREFIX"
53
54 Have fun!
55
56 EOF