mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
2a64cbe596
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.
35 lines
756 B
Bash
35 lines
756 B
Bash
#!/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."
|