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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#!/bin/sh
echo Searching for .SBK and .SF2 files...
SBK_LOCATION=""
cd /usr/lib/awe/sfbank
for i in `/bin/mount | grep 'fat\|msdos' | cut -d\ -f3`; do
for j in sb16/sfbank sb32/sfbank windows/system win95/system; do
if [ -f $i/$j/synthgm.sbk -o -f $i/$j/synthgm.sf2 ]; then
echo Found in $i/$j.
if [ "$SBK_LOCATION" = "" ]; then
SBK_LOCATION=$i/$j
else
SBK_LOCATION=$SBK_LOCATION:$i/$j
fi
for k in $i/$j/*.{sbk,sf2}; do
if [ ! "$k" = "$i/$j/*.sbk" -a ! "$k" = "$i/$j/*.sf2" ]; then
if [ ! -L /usr/lib/awe/sfbank/`basename $k` \
-a ! -f /usr/lib/awe/sfbank/`basename $k` ]; then
echo Adding $k from $i/$j.
ln -s $k /usr/lib/awe/sfbank
fi
fi
done
fi
done
done
if [ "$SBK_LOCATION" = "" ]; then
echo "Not found; you will have to place or symlink the SBK"
echo "or SF2 files in /usr/local/lib/awe/sfbank manually, or specify a"
echo "full pathname on the sfxload command-line, or add appropriate"
echo "search directories into the configuration file."
fi
if [ ! -d /usr/include/linux ]; then
mkdir -p /usr/include/linux
fi
if [ ! -f /usr/include/linux/awe_voice.h ]; then
ln -s /usr/src/awedrv/awe_voice.h /usr/include/linux
fi
if [ -x /usr/sbin/install-mime ]; then
/usr/sbin/install-mime --install --package=awe-drv --content=application/x-soundfont-2 \
--comment="AWEdrv utilities" --needsterminal=f --copiousoutput=f \
--description="SoundFont 2 file" --textualnewlines=f \
--nametemplate="%s.sf2" --view="/usr/bin/sfxload %s" \
--edit="/usr/lib/awe/sfxedit %s"
fi
if [ -x /usr/sbin/install-docs ]; then
/usr/sbin/install-docs -i /usr/share/doc-base/awe-drv
/usr/sbin/install-docs -i /usr/share/doc-base/awe-drv-prog
fi
#DEBHELPER#
|