diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-09-25 10:25:51 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-09-25 10:25:51 +0000 |
commit | 39151bc9d1c1ebebfd90d604f38fc0cf08e3ef46 (patch) | |
tree | 6e823b08fd837c68f87d7ed06f20ba5978057b5e | |
parent | 633b21ffaf435e2e08280e206829a17fdef938a3 (diff) |
delete *.c files before re-generating them (since else we get double entries in the files);
LATER remove all .c files from this directory (they ought to be generated on the fly);
check whether to use d_mayer_fft.c or d_fft_mayer.c
svn path=/trunk/externals/corelibs/; revision=6019
-rw-r--r-- | README | 2 | ||||
-rwxr-xr-x | generate.sh | 15 |
2 files changed, 15 insertions, 2 deletions
@@ -7,3 +7,5 @@ These files are generated using the included script, generate.sh. They should not be modified directly. +IOhannes: these files should not be in here in the first place since they are generated + diff --git a/generate.sh b/generate.sh index 5c3ae3b..b5b3019 100755 --- a/generate.sh +++ b/generate.sh @@ -1,9 +1,20 @@ #!/bin/sh +# delete all .c-files in order to not duplicate entries in there +## LATER: ask hcs why he is using "touch" and ">>" instead of +## an initial ">" +rm -f lib_?_*.c + # 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 +if [ -e "../../pd/src/d_fft_mayer.c" ] +then + echo '#include "../../pd/src/d_fft_mayer.c"' >> lib_d_fft.c +else + echo '#include "../../pd/src/d_mayer_fft.c"' >> lib_d_fft.c +fi + for file in ../../pd/src/[dx]_*.c; do newfile=`echo $file | sed 's|.*/src/\([dx]_\)|lib_\1|'` @@ -18,6 +29,6 @@ for file in ../../pd/src/[dx]_*.c; do 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 -f lib_d_fftroutine.c lib_d_fft_mayer.c lib_d_mayer_fft.c lib_d_resample.c |