shithub: neindaw

Download patch

ref: 797776a72fd34a7ca773f906a55d37c3ae3e227c
parent: 503d29c4e565dcc5c36c1dee563913147dd0e85d
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Dec 28 13:14:33 EST 2019

put generation into a single file

--- a/faust9p.sh
+++ /dev/null
@@ -1,4 +1,0 @@
-#!/bin/sh
-set -e
-
-faust -lang c -a arch.c $@ -o /dev/stdout | sed 's/new\([^(]*\)() /new\1(void) /'
--- a/gen.sh
+++ b/gen.sh
@@ -3,5 +3,5 @@
 
 for i in *.dsp; do
 	class=$(grep -o declare.*name.* kick_drum.dsp | head -1 | sed 's/^[^"]*//g;s/[^A-Za-z0-9]//g')
-	./faust9p.sh -cn $class $i > $i.c
+	faust -lang c -a arch.c -cn $class $@ $i -o /dev/stdout | sed 's/new\([^(]*\)() /new\1(void) /' > $i.c
 done
--- a/mkfile
+++ b/mkfile
@@ -8,4 +8,7 @@
 
 default:V:	all
 
+CLEANFILES=\
+	kick_drum.dsp.c\
+
 </sys/src/cmd/mkone