]> git.sesse.net Git - mlt/blob - src/modules/configure
b33bc3700b3fd54522a018f6318bb8b1df848ef7
[mlt] / src / modules / configure
1 #!/bin/bash
2
3 # Clean up disables if not in help mode
4 [ "$help" != "1" ] && rm -f disable-* producers.dat filters.dat transitions.dat consumers.dat
5
6 # Iterate through arguments
7 for i in $*
8 do
9         case $i in
10                 --disable-* )   touch disable-${i#--disable-} ;;
11         esac
12 done
13
14 # Iterate through each of the components
15 for i in *
16 do
17         if [ -x $i/configure -a \( "$help" = "1" -o ! -f disable-$i \) ]
18         then
19                 echo "Configuring modules/$i:"
20                 pushd $i > /dev/null
21                 ./configure $@
22                 [ $? != 0 ] && exit 1
23                 popd > /dev/null
24         fi
25 done
26