]> git.alsa-project.org Git - alsa-tools.git/commitdiff
improved automake directory detection for echomixer tree
authorJaroslav Kysela <perex@perex.cz>
Tue, 19 Aug 2008 17:36:49 +0000 (19:36 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 19 Aug 2008 17:36:49 +0000 (19:36 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
echomixer/gitcompile

index 018227793c7183a3ae480cf31e3fb4b9b08d0e3e..39e35dec1f8cabc8fe3b642080c3ea9f86327645 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