summaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@t61.perex-int.cz>2009-05-14 15:40:52 +0200
committerJaroslav Kysela <perex@perex.cz>2009-05-15 14:20:46 +0200
commit22990acc7fe3c7245e42fc47d146f181bdd3baa9 (patch)
tree7c164e8954ddbc813924fb76d04014ad7d930d0a /go
parent6a1109b73257a9e17c97d3c9d6830c203b19ba3b (diff)
downloadalsa-utils-amixer.tar.gz
New mixer API updates for testing (compatibility mode)amixer
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'go')
-rwxr-xr-xgo23
1 files changed, 23 insertions, 0 deletions
diff --git a/go b/go
new file mode 100755
index 0000000..13ee43a
--- /dev/null
+++ b/go
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+GDB=""
+#GDB="gdb --args"
+BASEDIR=`pwd`/..
+[ ! -d $BASEDIR/alsa-lib ] && BASEDIR="$BASEDIR/.."
+CMD="$1"
+shift
+ALSALIB_CONF=$BASEDIR/alsa-lib/src/conf/alsa.conf
+
+case $CMD in
+run)
+ PROG="$1"
+ shift
+ ALSA_CONFIG_PATH="$ALSALIB_CONF" \
+ LD_PRELOAD=$BASEDIR/alsa-lib/src/.libs/libasound.so $GDB $PROG "$@"
+ ;;
+*)
+ echo "This is test build using alsa-lib in: $BASEDIR"
+ ./gitcompile --with-alsa-inc-prefix=$BASEDIR/alsa-lib/include \
+ --with-alsa-prefix=$BASEDIR/alsa-lib/src/.libs
+ ;;
+esac