From 0f258cc41904fb75c653a52f1bf6a5de7bf4612b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 May 2015 13:53:44 +0800 Subject: [PATCH] src/Project/Gtk.vala --- src/Project/Gtk.vala | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index ed0d89051..be08b7668 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -234,7 +234,7 @@ namespace Project { - var vv = (new Regex("\\.c$")).replace( fn, fn, 0, ".vala"); + var vv = (new Regex("\\.c$")).replace( fn, fn.length, 0, ".vala"); @@ -272,7 +272,12 @@ namespace Project { if (Regex.match_simple("\\.bjs$", fn)) { continue; } - + if (Regex.match_simple("\\.o$", fn)) { + continue; + } + if (Regex.match_simple("~$", fn)) { + continue; + } if (Regex.match_simple("\\.vala$", fn)) { var vv = (new Regex("\\.vala$")).replace( fn, fn.length, 0, ".bjs"); if (allfiles.index_of( vv) > -1) { -- 2.39.2