diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-08-20 22:28:44 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-08-20 22:28:44 +0200 |
commit | 59ca79b3253de1c160ee446a67d3d5fd2b4dba92 (patch) | |
tree | 19e661ad432962997bb07206f8d556bc652ffb30 | |
parent | 7c063334cb8056a6386ce31c40301e3f5e97048e (diff) | |
download | alsa-driver-build-unstable-59ca79b3253de1c160ee446a67d3d5fd2b4dba92.tar.gz |
gitcompile: Fix issue with relative ALSAKERNELDIR
Reported-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rwxr-xr-x | gitcompile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gitcompile b/gitcompile index 72f978186..f49263a95 100755 --- a/gitcompile +++ b/gitcompile @@ -33,15 +33,16 @@ if [ -d alsa-kernel -a -f alsa-kernel/sound/last.c ]; then 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 - if [ ! -f $ALSAKERNELDIR/sound/last.c ]; then + test -z "$ALSAKERNELDIR" && ALSAKERNELDIR=../alsa-kmirror + if [ ! -d "$ALSAKERNELDIR" -o ! -f "$ALSAKERNELDIR"/last.c ]; then + 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 +ALSAKERNELDIR=$(cd "$ALSAKERNELDIR" && pwd) make ALSAKERNELDIR="$ALSAKERNELDIR" all-deps || exit 1 aclocal $ACLOCAL_FLAGS || exit 1 autoconf || exit 1 |