# this script adds yes xml-element to an asterisk source file if it's missing
:loop
/^\/[*]{3}[ \t]+MODULEINFO/,/[ \t]*[*]{3}\// {
/[ \t]*[*]{3}\//!{
$!{
N;
bloop
}
}
/(no|yes)<\/defaultenabled>/!{
s,(\t[^<]+<\/support_level>),\tyes<\/defaultenabled>\n\1,
}
}