X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fconfigure;h=ee654132529f53502ba844d8a080b86a6b6a8d54;hb=cdf7162ebc07120e92166a0e43eaba21ecca25ba;hp=1a7b7492202cd2dfa846f3c5df767fc99fedd93a;hpb=5b33756c6cfa6a435ea5fce61a33ece1072c1380;p=melted diff --git a/src/modules/configure b/src/modules/configure index 1a7b749..ee65413 100755 --- a/src/modules/configure +++ b/src/modules/configure @@ -1,13 +1,13 @@ -#!/bin/bash +#!/bin/sh # Clean up disables if not in help mode [ "$help" != "1" ] && rm -f disable-* producers.dat filters.dat transitions.dat consumers.dat # Create the make.inc file -echo SUBDIRS = `find -type d -maxdepth 1 | grep -v CVS | grep -v "^.$" | sed 's/\.\///'` > make.inc +echo SUBDIRS = `find . -maxdepth 1 -type d | grep -v CVS | grep -v "^.$" | sed 's/\.\///'` > make.inc # Iterate through arguments -for i in $* +for i in "$@" do case $i in --disable-* ) touch disable-${i#--disable-} ;; @@ -19,11 +19,18 @@ for i in * do if [ -x $i/configure -a \( "$help" = "1" -o ! -f disable-$i \) ] then - [ "$help" = "0" ] && echo "Configuring modules/$i:" - pushd $i > /dev/null - ./configure $@ - [ $? != 0 ] && exit 1 - popd > /dev/null + if [ "$gpl" = "true" -o ! -f $i/gpl ] + then + [ "$help" = "0" ] && echo "Configuring modules/$i:" + olddir2=`pwd` + cd $i + ./configure "$@" + [ $? != 0 ] && exit 1 + cd $olddir2 + elif [ "$help" = "0" ] + then + touch disable-$i + fi fi done