comparison ringtools/fc-imyplay @ 888:b8ecdf54a957

fc-imyplay script
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 03 Apr 2022 04:28:44 +0000
parents ringtools/fc-meltest-pwt@5b68ba735e98
children
comparison
equal deleted inserted replaced
887:3e398f9c31a0 888:b8ecdf54a957
1 #!/bin/sh
2
3 if [ $# -lt 1 -o $# -gt 2 ]
4 then
5 echo "usage: $0 iMelody_file [volume]" 1>&2
6 exit 1
7 fi
8
9 tmpfile=/tmp/fc-test-melody.bz
10
11 if [ -n "$2" ]
12 then
13 volume="$2"
14 else
15 volume=64
16 fi
17
18 set -ex
19
20 fc-imy2pwt "$1" | fc-pwt-comp - $tmpfile
21 fc-fsio upload-file $tmpfile /buz/test.bz
22 fc-shell 'at@buz="/buz/test.bz"'",$volume"