Updated Slovenian translation
[banshee.git] / profile-configure
blob0363574d75a2608e6b4e2a76b0b7e5b6cf469c73
1 #!/usr/bin/env bash
3 profiles=(
4 "darwin
5 --disable-mtp
6 --disable-daap
7 --disable-ipod
8 --disable-boo
9 --disable-gnome
10 --disable-webkit
11 --disable-youtube
12 --disable-docs
14 "meego
15 --enable-meego
16 --disable-daap
17 --disable-webkit
18 --disable-youtube
19 --disable-boo
20 --disable-ipod
21 --disable-docs
25 selected_profile=$1; shift
27 for ((i=0; i<${#profiles[@]}; i++)); do
28 profile=(${profiles[$i]})
29 if [ "${profile[0]}" = "$selected_profile" ]; then
30 configure="./configure"
31 for ((j=1; j<${#profile[@]}; j++)); do
32 configure="$configure ${profile[$j]}"
33 done
34 if [ -d .git ]; then
35 configure="$configure --enable-maintainer-mode"
37 echo "Running $configure $@"
38 $configure $@
39 exit $?
41 done
43 echo "Usage: $0 <profile> [extra configure args]"
44 echo
45 echo " Available profiles:"
46 echo
47 for ((i=0; i<${#profiles[@]}; i++)); do
48 profile=(${profiles[$i]})
49 echo " ${profile[0]}"
50 done
51 echo
52 exit 1