]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
Add hgcompile script
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 May 2006 13:35:23 +0000 (15:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 May 2006 13:35:23 +0000 (15:35 +0200)
Added hgcompile script.

Makefile.am
hgcompile [new file with mode: 0755]

index f33191d25667711068fe693f9f360151ef961a08..8cef8bd20835377c17619ae7d183cc55d4cafc2b 100644 (file)
@@ -12,7 +12,7 @@ A52DIR = a52
 endif
 
 SUBDIRS = oss mix $(JACKDIR) $(POLYPDIR) $(SAMPLERATEDIR) $(A52DIR) doc
-EXTRA_DIST = cvscompile version COPYING.GPL
+EXTRA_DIST = hgcompile version COPYING.GPL
 AUTOMAKE_OPTIONS = foreign
 
 dist-hook:
diff --git a/hgcompile b/hgcompile
new file mode 100755 (executable)
index 0000000..484a400
--- /dev/null
+++ b/hgcompile
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+touch ltconfig
+libtoolize --force --copy --automake
+aclocal $ACLOCAL_FLAGS
+autoheader
+automake --foreign --copy --add-missing
+touch depcomp          # seems to be missing for old automake
+autoconf
+export CFLAGS='-O2 -Wall -W -pipe -g'
+echo "CFLAGS=$CFLAGS"
+echo "./configure $@"
+./configure $@ || exit 1
+unset CFLAGS
+if [ -z "$HGCOMPILE_NO_MAKE" ]; then
+  make
+fi