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]}"
35 configure
="$configure --enable-maintainer-mode"
37 echo "Running $configure $@"
43 echo "Usage: $0 <profile> [extra configure args]"
45 echo " Available profiles:"
47 for ((i
=0; i
<${#profiles[@]}; i
++)); do
48 profile
=(${profiles[$i]})