X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fconfigure;h=83b27c8fc16e74f6f03ff3d18894ae077629e1c0;hb=52fa2474c1a2472022dd12ccea5c794f66532012;hp=b10101ba323f2bb5c9714b4eae950c1567fffc28;hpb=263e253a65f403b90eecf0b46b692e326e970b29;p=melted diff --git a/src/modules/configure b/src/modules/configure index b10101b..83b27c8 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 . -type d -maxdepth 1 | 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-} ;; @@ -22,10 +22,11 @@ do if [ "$gpl" = "true" -o ! -f $i/gpl ] then [ "$help" = "0" ] && echo "Configuring modules/$i:" - pushd $i > /dev/null - ./configure $@ + olddir2=`pwd` + cd $i + ./configure "$@" [ $? != 0 ] && exit 1 - popd > /dev/null + cd $olddir2 elif [ "$help" = "0" ] then touch disable-$i