debian: build different sets of modules based on the debian codename
This commit is contained in:
parent
0553518f67
commit
5c18656a91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue