From: Jaroslav Kysela Date: Tue, 19 Aug 2008 17:36:49 +0000 (+0200) Subject: improved automake directory detection for echomixer tree X-Git-Tag: v1.0.18~2^2~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a3102522e2428d874ea50db7d6cec19be4e62b5e;p=alsa-tools.git improved automake directory detection for echomixer tree Signed-off-by: Jaroslav Kysela --- diff --git a/echomixer/gitcompile b/echomixer/gitcompile index 0182277..39e35de 100755 --- a/echomixer/gitcompile +++ b/echomixer/gitcompile @@ -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