]> git.sesse.net Git - mlt/blob - src/modules/configure
Rescaler and fezzik rework (to allow inclusion of mc scaler)
[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                 if [ "$gpl" = "true" -o ! -f $i/gpl ]
23                 then
24                         [ "$help" = "0" ] && echo "Configuring modules/$i:"
25                         pushd $i > /dev/null
26                         ./configure $@
27                         [ $? != 0 ] && exit 1
28                         popd > /dev/null
29                 elif [ "$help" = "0" ]
30                 then
31                         touch disable-$i
32                 fi
33         fi
34 done
35