Blame hwmixvolume/gitcompile

Packit Service b98cfc
#!/bin/bash
Packit Service b98cfc
Packit Service b98cfc
if test -z "$AUTOMAKE_DIR" ; then
Packit Service b98cfc
  if test -d /usr/local/share/automake; then
Packit Service b98cfc
    AUTOMAKE_DIR=/usr/local/share/automake
Packit Service b98cfc
  fi
Packit Service b98cfc
  if test -d /usr/share/automake; then
Packit Service b98cfc
    AUTOMAKE_DIR="/usr/share/automake"
Packit Service b98cfc
  fi
Packit Service b98cfc
  if test -z "$AUTOMAKE_DIR" ; then
Packit Service b98cfc
    AUTOMAKE_DIR=/usr/share/`ls /usr/share | grep automake | tail -n 1`
Packit Service b98cfc
  fi
Packit Service b98cfc
fi
Packit Service b98cfc
Packit Service b98cfc
for f in install-sh mkinstalldirs missing; do
Packit Service b98cfc
  cp -av $AUTOMAKE_DIR/$f . || exit 1
Packit Service b98cfc
done
Packit Service b98cfc
Packit Service b98cfc
aclocal $ACLOCAL_FLAGS || exit 1
Packit Service b98cfc
automake --foreign --add-missing || exit 1
Packit Service b98cfc
autoconf || exit 1
Packit Service b98cfc
echo "./configure $@"
Packit Service b98cfc
./configure $@ || exit 1
Packit Service b98cfc
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
Packit Service b98cfc
  make || exit 1
Packit Service b98cfc
fi