~ubuntu-branches/ubuntu/trusty/alsa-tools/trusty-proposed

« back to all changes in this revision

Viewing changes to hdspconf/gitcompile

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Elimar Riesebieter
  • Date: 2008-11-07 13:58:01 UTC
  • mfrom: (1.1.7 upstream) (2.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20081107135801-gumjy3qvv9xkrlye
Tags: 1.0.18-1
* New upstream release.

[ Elimar Riesebieter ]
* Build-Depends bumped to libasound2-dev (>= 1.0.18).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
if test -z "$AUTOMAKE_DIR"; then
 
4
  if test -d /usr/local/share/automake; then
 
5
    AUTOMAKE_DIR=/usr/local/share/automake
 
6
  fi
 
7
  if test -d /usr/share/automake; then
 
8
    AUTOMAKE_DIR="/usr/share/automake"
 
9
  fi
 
10
  if test -z "$AUTOMAKE_DIR"; then
 
11
    AUTOMAKE_DIR=/usr/share/`ls /usr/share | grep automake | tail -n 1`
 
12
  fi
 
13
fi
 
14
 
 
15
for f in install-sh mkinstalldirs missing; do
 
16
  cp -av $AUTOMAKE_DIR/$f . || exit 1
 
17
done
 
18
 
 
19
aclocal $ACLOCAL_FLAGS || exit 1
 
20
automake --foreign --add-missing --copy || exit 1
 
21
touch depcomp || exit 1
 
22
autoconf || exit 1
 
23
export CFLAGS='-O2 -Wall -pipe -g'
 
24
echo "CFLAGS=$CFLAGS"
 
25
echo "./configure $@"
 
26
./configure $@ || exit 1
 
27
unset CFLAGS
 
28
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
 
29
  make || exit 1
 
30
fi