# HG changeset patch # User Mychaela Falconia # Date 1648960124 0 # Node ID b8ecdf54a957c047a9f2b407cbe1cf5d018f9e20 # Parent 3e398f9c31a0383096d490b5dd222752ae1aea27 fc-imyplay script diff -r 3e398f9c31a0 -r b8ecdf54a957 ringtools/Makefile --- a/ringtools/Makefile Sun Apr 03 04:17:08 2022 +0000 +++ b/ringtools/Makefile Sun Apr 03 04:28:44 2022 +0000 @@ -1,7 +1,7 @@ CC= gcc CFLAGS= -O2 PROGS= fc-e1decode fc-e1gen fc-pwt-comp fc-ringlist-comp -SCRIPTS=fc-meltest-e1 fc-meltest-pwt +SCRIPTS=fc-imyplay fc-meltest-e1 fc-meltest-pwt SUBDIR= imy INSTALL_PREFIX= /opt/freecalypso diff -r 3e398f9c31a0 -r b8ecdf54a957 ringtools/fc-imyplay --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ringtools/fc-imyplay Sun Apr 03 04:28:44 2022 +0000 @@ -0,0 +1,22 @@ +#!/bin/sh + +if [ $# -lt 1 -o $# -gt 2 ] +then + echo "usage: $0 iMelody_file [volume]" 1>&2 + exit 1 +fi + +tmpfile=/tmp/fc-test-melody.bz + +if [ -n "$2" ] +then + volume="$2" +else + volume=64 +fi + +set -ex + +fc-imy2pwt "$1" | fc-pwt-comp - $tmpfile +fc-fsio upload-file $tmpfile /buz/test.bz +fc-shell 'at@buz="/buz/test.bz"'",$volume"