tools: fix gccx with: .nit_compile[0-9] and GC
authorJean-Sebastien Gelinas <calestar@gmail.com>
Wed, 2 Sep 2009 21:33:25 +0000 (17:33 -0400)
committerJean Privat <jean@pryen.org>
Fri, 11 Sep 2009 17:54:05 +0000 (13:54 -0400)
Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

bin/gccx

index fd79311..7d8e285 100755 (executable)
--- a/bin/gccx
+++ b/bin/gccx
@@ -90,9 +90,15 @@ for i in "$@"; do
        j=`basename "$i" .c`
        transformed=`echo "$i" | sed "
                /\.nit_compile\/.*_sep\.c/s/\.nit_compile\/\(.*\)\._sep\.c/Module \1/
+               /\.nit_compile\/.*_glob\.c/s/\.nit_compile\/\(.*\)\._glob\.c/Module \1/
+               /\.nit_compile[1-9]\/.*_sep\.c/s/\.nit_compile[1-9]\/\(.*\)\._sep\.c/Module \1/
+               /\.nit_compile[1-9]\/.*_glob\.c/s/\.nit_compile[1-9]\/\(.*\)\._glob\.c/Module \1/
                /\/nit_main\.c/s/.*\/nit_main\.c/Main/
                /\.nit_compile\/.*\._tables\.c/s/.*/Tables/
+               /\.nit_compile[1-9]\/.*\._tables\.c/s/.*/Tables/
                /\/\/.*_nit\.c/s/.*\/\/\(.*\)_nit.c/Native \1/
+               s/.*\/gc.c/Garbage Collector/
+               s/.*\/gc_static_objects_list.c/Garbage Collector object list/
        "`
 
        found="false"