From 1006245886c1add971bca70c0754ce58026f6a28 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Wed, 29 Jan 2014 17:57:22 -0800 Subject: [PATCH] cleanup --- Makefile | 6 +++--- common.sh | 12 ------------ crap_eq.h | 0 crap_noise-ladspa.c | 0 generate-ladspa | 13 +++++-------- generate-vst | 9 +++++---- param.h | 0 7 files changed, 13 insertions(+), 27 deletions(-) delete mode 100644 common.sh mode change 100755 => 100644 crap_eq.h mode change 100755 => 100644 crap_noise-ladspa.c mode change 100755 => 100644 param.h diff --git a/Makefile b/Makefile index 7ac1858..1b8ef2c 100755 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ ALL = ${SHOBJ} ${OBJ} ${EXE} MISC_CLEAN = bench ${BENCH} MISC_DIST = LICENSE README.md Makefile MISC_DIST += benchtime ${BENCH:.o=.c} -MISC_DIST += generate-ladspa generate-vst common.sh +MISC_DIST += generate-ladspa generate-vst MISC_DIST += template-vst.cpp template-ladspa.c ladspa.h all: options ladspa vst ${EXE} @@ -96,10 +96,10 @@ vstsdk.o: ${VST_SRC} @echo ' CXX '$@ @${CXX} -c ${ALL_CXXFLAGS} ${CPPFLAGS} $< -o $@ -%-ladspa.c: %.h template-ladspa.c generate-ladspa common.sh +%-ladspa.c: %.h template-ladspa.c generate-ladspa ./generate-ladspa $< $@ -%-vst.cpp: %.h template-vst.cpp generate-vst common.sh +%-vst.cpp: %.h template-vst.cpp generate-vst ./generate-vst $< $@ .SUFFIXES: diff --git a/common.sh b/common.sh deleted file mode 100644 index 0b1a22c..0000000 --- a/common.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash -set -e -set -u - -p="$1" -out="$2" - -while read -r; do - : -done < "$p" - -pp_include="#include \"$p\"" diff --git a/crap_eq.h b/crap_eq.h old mode 100755 new mode 100644 diff --git a/crap_noise-ladspa.c b/crap_noise-ladspa.c old mode 100755 new mode 100644 diff --git a/generate-ladspa b/generate-ladspa index de63e75..6b20dc9 100755 --- a/generate-ladspa +++ b/generate-ladspa @@ -1,18 +1,15 @@ #!/usr/bin/env bash -. common.sh +set -e +set -u + +pp_include="#include \"$1\"" +out="$2" (cat template-ladspa.c | while read -r; do case "$REPLY" in '//#INCLUDE') echo "$pp_include" ;; - # unimplemented - '//#PORT_DESCRIPTIONS') :;; - '//#PORT_HINTS') :;; - '//#PORT_NAMES') :;; - '//#PORT_DATA') :;; - '//#PORT_CONNECT') :;; - *) echo -E "$REPLY" ;; esac done) > "$out" diff --git a/generate-vst b/generate-vst index 3630414..6a35d98 100755 --- a/generate-vst +++ b/generate-vst @@ -1,14 +1,15 @@ #!/usr/bin/env bash -. common.sh +set -e +set -u + +pp_include="#include \"$1\"" +out="$2" (cat template-vst.cpp | while read -r; do case "$REPLY" in '//#INCLUDE') echo "$pp_include" ;; - # unimplemented - '//#VST_PARAMS') :;; - *) echo -E "$REPLY" ;; esac done) > "$out" diff --git a/param.h b/param.h old mode 100755 new mode 100644