blob: 8f78404e3834bc40b1aeeecc24d9aabee5158cb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
case "$1" in
play)
if [ -f XXXPKG_SYSCONFDIRXXX/timidity/timidity.cfg ]
then
TIMIDITY_CFG=""
else
TIMIDITY_CFG="-L XXXPREFIXXXX/share/eawpatches -c timidity.cfg"
fi
XXXPREFIXXXX/bin/timidity $TIMIDITY_CFG -U -idq -Or -o - -s 44100 "$2"
exit 0
;;
isOurFile)
file - <"$2" | grep -q MIDI
if [ $? -eq 0 ]
then
exit 0
else
exit 1
fi
;;
esac
exit 1
|