diff ringtools/examples/compile.sh @ 869:7be2220d52c5

ringtools/examples: add compile.sh like in e1-experiments
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 28 Mar 2022 06:03:34 +0000
parents ringtools/e1-experiments/compile.sh@64b37ad18f7a
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ringtools/examples/compile.sh	Mon Mar 28 06:03:34 2022 +0000
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ $# != 1 ]
+then
+	echo "usage: $0 test_melody_name" 1>&2
+	exit 1
+fi
+
+if [ ! -f "$1.pwt" ]
+then
+	echo "error: can't find $1.pwt" 1>&2
+	exit 1
+fi
+
+exec ../fc-pwt-comp "$1.pwt" "$1.bz"