summaryrefslogtreecommitdiff
path: root/rc/bin/dmus
diff options
context:
space:
mode:
authorqwx <devnull@localhost>2018-07-12 09:33:33 +0200
committerqwx <devnull@localhost>2018-07-12 09:33:33 +0200
commit96e511d736ca4f18b70312980591014199afeb1a (patch)
tree97b3b17b6af03dc90317ba6402c0c2d9f7c555cd /rc/bin/dmus
parent1e3790f7b5a7d5a01d63afe3956b36fa2d11ed0c (diff)
add games/dmid and games/opl3
Diffstat (limited to 'rc/bin/dmus')
-rwxr-xr-xrc/bin/dmus10
1 files changed, 10 insertions, 0 deletions
diff --git a/rc/bin/dmus b/rc/bin/dmus
new file mode 100755
index 000000000..51950d033
--- /dev/null
+++ b/rc/bin/dmus
@@ -0,0 +1,10 @@
+#!/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