Updated Slovenian translation
[banshee.git] / bootstrap-bundle
blobbc9b3ee4fdf911e9ebdc369f4b043d9f565df579
1 #!/usr/bin/env bash
3 set -e
5 profile_name="$1"
7 if test -z "$profile_name"; then
8 case "$(uname)" in
9 Linux) profile_name=linux ;;
10 Darwin) profile_name=darwin ;;
12 echo "Unsupported system type: $(uname)"
13 exit 1
15 esac
18 profile="profile.$profile_name.py"
20 if ! test -f "build/bundle/$profile"; then
21 echo "Profile does not exist: build/bundle/$profile"
22 exit 1
25 selfdir="$(pwd)/$(dirname "$0")"
26 envfile="$selfdir/$profile_name.env"
28 pushd build/bundle &>/dev/null
29 ./$profile -bv
30 ./$profile -e > "$envfile"
31 popd &>/dev/null
33 [ $profile_name = darwin ] && \
34 echo "export GTK2_RC_FILES=\"$selfdir/build/bundle/skeleton.darwin/Contents/Resources/etc/gtk-2.0/gtkrc\"" >> "$envfile"
36 source "$envfile"
38 CONFIGURE_ARGS="
39 --disable-mtp
40 --disable-daap
41 --disable-ipod
42 --disable-boo
43 --disable-gnome
44 --disable-webkit
45 --disable-docs
48 ./autogen.sh --prefix="$BUILD_PREFIX" $CONFIGURE_ARGS
50 cat <<EOF
52 The world has built! You can now build Banshee.
53 Be sure to source in the profile environment:
55 $ source $profile_name.env
57 Once sourced, just run autogen/configure/make, etc
58 as normal. The install prefix is available as the
59 BUILD_PREFIX environment variable - e.g.:
61 $ ./autogen.sh --prefix="\$BUILD_PREFIX"
63 Have fun!
65 EOF