summaryrefslogtreecommitdiff
path: root/audio/gsi/files/configure.sh
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-12-07 18:05:12 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-12-07 18:05:12 +0000
commit2a64cbe5960bcd31c0dc83ef393d7fbcde3d8b3a (patch)
treef156be516fa9ab5097b0e814ea96ea50cab34533 /audio/gsi/files/configure.sh
parentDon't do isprint(3) filtering, just print it. (diff)
Add GSI. GSI is an easy to use audio system which can be used over a network
and which gives applications, through a very simple API, sample playing with stereo, 3D, doppler effects, music playing (MIDI, HMP, MUS), cd playing and ejecting/changing.
Notes
Notes: svn path=/head/; revision=35752
Diffstat (limited to 'audio/gsi/files/configure.sh')
-rw-r--r--audio/gsi/files/configure.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/audio/gsi/files/configure.sh b/audio/gsi/files/configure.sh
new file mode 100644
index 000000000000..8e483694c596
--- /dev/null
+++ b/audio/gsi/files/configure.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+PREFIX=$1
+SYSCONFSCRIPT=Config/Configure_system.sh
+APPCONFSCRIPT=Config/Configure_application.sh
+
+# Change to the work directory.
+cd $2
+
+# Execute two configure scripts while piping the output to /dev/null.
+# This is because the output looks somewhat mashed.
+echo -n "Executing ${SYSCONFSCRIPT}... "
+${SYSCONFSCRIPT} << _E_O_M_ > /dev/null 2>&1
+0
+${PREFIX}
+_E_O_M_
+echo "done."
+
+echo -n "Executing ${APPCONFSCRIPT}... "
+${APPCONFSCRIPT} << _E_O_M2_ > /dev/null 2>&1
+3
+
+
+
+
+_E_O_M2_
+echo "done."
+
+# Fix a file to reflect where the configuration file should be looked for.
+echo -n "Configuring server/config.c... "
+mv server/config.c server/config.c.orig
+cat server/config.c.orig | sed "s|/etc/gsi.conf|${PREFIX}&|" > server/config.c
+
+echo "done."