make install part 2 - building configs
[melted] / configure
index 4b39bfc..647e4a4 100755 (executable)
--- a/configure
+++ b/configure
@@ -13,12 +13,27 @@ EOF
 
        for i in src/modules/*
        do
-               [ -d $i ] && echo "     --disable-`basename $i`"
+               [ -d $i ] && [ "`basename $i`" != "CVS" ] && echo "     --disable-`basename $i`"
        done
 
        echo
 }
 
+function build_config
+{
+       (
+               echo version=0.1.0
+               echo prefix=$prefix
+               echo bindir=$prefix/bin
+       ) > config.mak
+
+       echo "#!/bin/sh" > mlt-config
+       sed 's/^/export /' < config.mak >> mlt-config
+       cat < mlt-config-template >> mlt-config
+
+       echo -n > packages.dat
+}
+
 # Debug mode
 set +x
 
@@ -37,7 +52,7 @@ do
 done
 
 # Show help if requested
-[ $help = 1 ] && show_help
+[ $help = 1 ] && show_help || build_config 
 
 # Iterate through each of the components
 for i in framework modules inigo valerie miracle humperdink