Simplify installation procedure
[cgds.git] / test / makeMain.sh
old mode 100644 (file)
new mode 100755 (executable)
index 19bb852..c3d415c
@@ -1,5 +1,4 @@
 #/bin/bash
-#TODO: dispatch in several files and run in parallel ?!
 
 #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
-       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