debian: build different sets of modules based on the debian codename

This commit is contained in:
Travis Cross 2012-05-07 23:32:09 +00:00
parent 0553518f67
commit 5c18656a91
1 changed files with 6 additions and 3 deletions

9
debian/bootstrap.sh vendored
View File

@ -30,14 +30,16 @@ avoid_mods=(
event_handlers/mod_snmp
formats/mod_portaudio_stream
formats/mod_shout
formats/mod_vlc
languages/mod_java
languages/mod_managed
languages/mod_spidermonkey
languages/mod_yaml
sdk/autotools
xml_int/mod_xml_ldap
)
avoid_mods_squeeze=(
formats/mod_vlc
languages/mod_spidermonkey
)
err () {
echo "$0 error: $1" >&2
@ -54,7 +56,8 @@ xread () {
}
avoid_mod_filter () {
for x in "${avoid_mods[@]}"; do
local mods=("$(eval echo \${avoid_mods_$codename[@]})" "${avoid_mods[@]}")
for x in "${mods[@]}"; do
[ "$1" = "$x" ] && return 1
done
return 0