]> git.sesse.net Git - mlt/blob - src/modules/configure
1a7b7492202cd2dfa846f3c5df767fc99fedd93a
[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 # Create the make.inc file
7 echo SUBDIRS = `find -type d -maxdepth 1 | grep -v CVS | grep -v "^.$" | sed 's/\.\///'` > make.inc
8
9 # Iterate through arguments
10 for i in $*
11 do
12         case $i in
13                 --disable-* )   touch disable-${i#--disable-} ;;
14         esac
15 done
16
17 # Iterate through each of the components
18 for i in *
19 do
20         if [ -x $i/configure -a \( "$help" = "1" -o ! -f disable-$i \) ]
21         then
22                 [ "$help" = "0" ] && echo "Configuring modules/$i:"
23                 pushd $i > /dev/null
24                 ./configure $@
25                 [ $? != 0 ] && exit 1
26                 popd > /dev/null
27         fi
28 done
29