From: Jaroslav Kysela Date: Tue, 3 Jun 2008 09:54:50 +0000 (+0200) Subject: improved compile script (too look also to subdirs) X-Git-Tag: v1.0.17~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0478bb19e1cfdc62ea44b169abf34f00545cd7b8;p=alsa-tools.git improved compile script (too look also to subdirs) --- diff --git a/compile b/compile index 24fd9c7..c4f5c6a 100755 --- a/compile +++ b/compile @@ -3,8 +3,17 @@ for i in * ; do if test -d $i ; then cd $i || exit 1 - ./configure $COMPILE_ARGS || exit 1 - make || exit 1 + if test -x ./configure; then + ./configure $COMPILE_ARGS || exit 1 + make || exit 1 + else + for j in * ; do + cd $j || exit 1 + ./configure $COMPILE_ARGS || exit 1 + make || exit 1 + cd .. + done + fi cd .. fi done