File: gitcompile

package info (click to toggle)
alsa-tools 1.2.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,184 kB
  • sloc: ansic: 23,759; cpp: 15,276; sh: 6,037; pascal: 1,140; asm: 1,053; makefile: 926; xml: 846; python: 251
file content (30 lines) | stat: -rwxr-xr-x 731 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

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
  cp -av $AUTOMAKE_DIR/$f . || exit 1
done

aclocal $ACLOCAL_FLAGS || exit 1
automake --foreign --add-missing --copy || exit 1
touch depcomp || exit 1
autoconf || exit 1
export CFLAGS='-O2 -Wall -pipe -g'
echo "CFLAGS=$CFLAGS"
echo "./configure $@"
./configure $@ || exit 1
unset CFLAGS
if test -z "$GITCOMPILE_NO_MAKE" ; then
  make || exit 1
fi