diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-08-20 21:32:52 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-08-20 21:32:52 +0200 |
commit | 6d02b75b101a45ca172ef9e80c5a55a471794250 (patch) | |
tree | bd3ac2d71569d4937cb63a0ca768978c0aefb017 | |
parent | 218f254aff0ca6c144d3c3694c42ccde92bd22a3 (diff) | |
download | alsa-driver-build-unstable-6d02b75b101a45ca172ef9e80c5a55a471794250.tar.gz |
gitcompile: Add right check for whole linux 2.6 trees (ALSAKERNELDIR)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rwxr-xr-x | gitcompile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gitcompile b/gitcompile index b845fd8e2..72f978186 100755 --- a/gitcompile +++ b/gitcompile @@ -28,16 +28,18 @@ fi #fi # check for alsa-kmirror directory -if [ -d alsa-kernel -a -f alsa-kernel/last.c ]; then +if [ -d alsa-kernel -a -f alsa-kernel/sound/last.c ]; then ALSAKERNELDIR="alsa-kernel" elif [ -d alsa-kmirror -a -f alsa-kmirror/last.c ]; then ALSAKERNELDIR="alsa-kmirror" else test -z $ALSAKERNELDIR && ALSAKERNELDIR=../alsa-kmirror if [ ! -d $ALSAKERNELDIR -o ! -f $ALSAKERNELDIR/last.c ]; then - echo "No alsa-kmirror is found." - echo "Please specify the correct location via ALSAKERNELDIR environment variable." - exit 1 + if [ ! -f $ALSAKERNELDIR/sound/last.c ]; then + echo "No alsa-kmirror or alsa-kernel tree is found." + echo "Please specify the correct location via ALSAKERNELDIR environment variable." + exit 1 + fi fi fi make ALSAKERNELDIR="$ALSAKERNELDIR" all-deps || exit 1 |