plan9fox/rc/bin/dmus
2018-07-12 09:33:33 +02:00

10 lines
185 B
Bash
Executable file

#!/bin/rc
if(test -f /mnt/wad/genmidi)
c=(games/dmid '|' games/opl3)
if not
c=(games/midi -c)
if(~ `{file -m $1} audio/mus)
c=(games/mus '<' $1 '|' $c)
if not
c=('<' $1 $c)
eval $c