projects
/
cgds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes + improvements (Vector) + code reformatting
[cgds.git]
/
test
/
makeMain.sh
diff --git
a/test/makeMain.sh
b/test/makeMain.sh
old mode 100644
(file)
new mode 100755
(executable)
index
19bb852
..
c3d415c
--- a/
test/makeMain.sh
+++ b/
test/makeMain.sh
@@
-1,5
+1,4
@@
#/bin/bash
#/bin/bash
-#TODO: dispatch in several files and run in parallel ?!
#initialize main.c
printf '#include <stdlib.h>\n' > main.c
#initialize main.c
printf '#include <stdlib.h>\n' > main.c
@@
-10,7
+9,7
@@
printf '{\n' >> main.c
#add functions
for file in `find . -type f -name \*.c ! -name main.c`; do
printf "\t//file $file :\n" >> main.c
#add functions
for file in `find . -type f -name \*.c ! -name main.c`; do
printf "\t//file $file :\n" >> main.c
- functions=`grep '^ *void t_' $file | sed 's/^ *
\(void
[^(]*\).*/\t\1();/g'`
+ functions=`grep '^ *void t_' $file | sed 's/^ *
void \(
[^(]*\).*/\t\1();/g'`
printf "$functions" >> main.c
printf '\n\n' >> main.c
done
printf "$functions" >> main.c
printf '\n\n' >> main.c
done