Update Finnish translation
[banshee.git] / bootstrap-bundle
blob07b827f4f77a018da3b53a8fc1cafeab8f6cce0f
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_name.py"
20 if ! test -f "../bockbuild/profiles/banshee/$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 ../bockbuild/profiles/banshee &>/dev/null
29 ./$profile -bv
30 ./$profile -e > "$envfile"
32 # write the newly generated env vars as xml into the Nereid.csproj
33 # so we can start with MonoDevelop immediately.
34 [ $profile_name = darwin ] && \
35 ./$profile --csproj-insert="$selfdir/src/Clients/Nereid/Nereid.csproj"
36 popd &>/dev/null
38 [ $profile_name = darwin ] && \
39 echo "export GTK2_RC_FILES=\"$selfdir/../bockbuild/profiles/banshee/skeleton.darwin/Contents/Resources/etc/gtk-2.0/gtkrc\"" >> "$envfile"
41 source "$envfile"
43 NOCONFIGURE=1 ./autogen.sh
44 ./profile-configure $profile_name --prefix="$BUILD_PREFIX"
46 cat <<EOF
48 The world has built! You can now build Banshee.
49 Be sure to source in the profile environment:
51 $ source $profile_name.env
53 Once sourced, just run autogen/configure/make, etc
54 as normal. The install prefix is available as the
55 BUILD_PREFIX environment variable - e.g.:
57 $ ./autogen.sh --prefix="\$BUILD_PREFIX"
59 Have fun!
61 EOF