diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-08-25 11:05:21 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-08-25 11:05:21 +0200 |
commit | bd9bbf0513db08ae282e7512d9d0b902d0fd9db4 (patch) | |
tree | 619fecf1bfeb1846ee53b0609f891f32ef774858 | |
parent | 59ca79b3253de1c160ee446a67d3d5fd2b4dba92 (diff) | |
download | alsa-driver-build-unstable-bd9bbf0513db08ae282e7512d9d0b902d0fd9db4.tar.gz |
gitcompile: check for more and correct alsa-kmirror/kernel directories
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rwxr-xr-x | gitcompile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gitcompile b/gitcompile index f49263a95..fb84b0cca 100755 --- a/gitcompile +++ b/gitcompile @@ -27,11 +27,15 @@ fi # cd .. #fi -# check for alsa-kmirror directory -if [ -d alsa-kernel -a -f alsa-kernel/sound/last.c ]; then +# check for alsa-kmirror or 2.6 linux source tree directory +if [ -d alsa-kernel -a -f alsa-kernel/last.c ]; then ALSAKERNELDIR="alsa-kernel" -elif [ -d alsa-kmirror -a -f alsa-kmirror/last.c ]; then - ALSAKERNELDIR="alsa-kmirror" +elif [ -d ../alsa-kernel -a -f ../alsa-kernel/sound/last.c ]; then + ALSAKERNELDIR="../alsa-kernel" +elif [ -d ../sound-2.6 -a -f ../sound-2.6/sound/last.c ]; then + ALSAKERNELDIR="../sound-2.6" +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 |