aboutsummaryrefslogtreecommitdiff
path: root/externals/vanilla/generate.sh
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-11-10 00:40:02 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-11-10 00:40:02 +0000
commitdc86a87016dcb6fd64912ee861eaa8c5d9fa591a (patch)
tree3baa77f5078331d16db8bb48aed4b772d1d08b30 /externals/vanilla/generate.sh
parent64dd690e836f19cfac3f5a062fa21d148c4e8b56 (diff)
renaming this to 'vanilla' since that's the most common name used for the core of Pd
svn path=/trunk/; revision=12733
Diffstat (limited to 'externals/vanilla/generate.sh')
-rwxr-xr-xexternals/vanilla/generate.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/externals/vanilla/generate.sh b/externals/vanilla/generate.sh
new file mode 100755
index 00000000..0e37eefd
--- /dev/null
+++ b/externals/vanilla/generate.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+echo this script appends, so first delete all files you want to update!
+
+# put these at the top of the file
+touch lib_d_fft.c
+echo '#include "../../pd/src/d_fftroutine.c"' >> lib_d_fft.c
+echo '#include "../../pd/src/d_fft_mayer.c"' >> lib_d_fft.c
+
+for file in ../../pd/src/[dx]_*.c; do
+ newfile=`echo $file | sed 's|.*/src/\([dx]_\)|lib_\1|'`
+ touch $newfile
+ /bin/echo -n '#include "' >> $newfile
+ /bin/echo -n $file >> $newfile
+ /bin/echo '"' >> $newfile
+ /bin/echo "void "`echo $newfile|sed 's|\(.*\)\.c|\1|'`"_setup(void)" >> $newfile
+ /bin/echo "{" >> $newfile
+ /bin/echo $file | sed 's|.*src/\(.*\)\.c| \1_setup();|' >> $newfile
+ /bin/echo "}" >> $newfile
+done
+
+# these files hold code for other classes, but no classes
+rm lib_d_fftroutine.c lib_d_fft_mayer.c lib_d_resample.c
+rm lib_d_fft_fftw.c lib_d_fft_fftsg.c lib_d_fftsg_h.c
+