]> git.alsa-project.org Git - alsa-tools.git/commitdiff
sb16_csp/gitcompile improve automake directory detection
authorJaroslav Kysela <perex@perex.cz>
Tue, 19 Aug 2008 17:27:24 +0000 (19:27 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 19 Aug 2008 17:27:24 +0000 (19:27 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sb16_csp/gitcompile

index 2089bd45e58ad31ca2c7097479eb973ed6e06ac0..0f42e995c82c08ca004fac27114004c490322ac4 100755 (executable)
@@ -1,12 +1,15 @@
 #!/bin/bash
 
-if test "x$AUTOMAKE_DIR" = "x"; then
+if test -z "$AUTOMAKE_DIR"; then
   if test -d /usr/local/share/automake; then
     AUTOMAKE_DIR=/usr/local/share/automake
   fi
   if test -d /usr/share/automake; then
     AUTOMAKE_DIR="/usr/share/automake"
   fi
+  if test -z "$AUTOMAKE_DIR"; then
+    AUTOMAKE_DIR=/usr/share/`ls /usr/share | grep automake | tail -n 1`
+  fi
 fi
 
 for f in install-sh mkinstalldirs missing; do
@@ -22,6 +25,6 @@ echo "CFLAGS=$CFLAGS"
 echo "./configure $@"
 ./configure $@ || exit 1
 unset CFLAGS
-if [ -z "$GITCOMPILE_NO_MAKE" ]; then
+if -z "$GITCOMPILE_NO_MAKE"; then
   make || exit 1
 fi