From: Alan Knowles Date: Tue, 26 May 2015 06:19:48 +0000 (+0800) Subject: src/Project/Gtk.vala X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=a51ff53dfd027277a88b9948b6bcc4601848b528 src/Project/Gtk.vala --- diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index 769a96007..376306c5b 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -198,7 +198,7 @@ namespace Project { GLib.debug("SKIP %s not regular ", fn); continue; } - if (!Regex.match_simple("^text", next_file.get_content_type()) { + if (!Regex.match_simple("^text", next_file.get_content_type())) { continue; } GLib.debug("SCAN ADD %s : %s", fn, next_file.get_content_type()); @@ -282,12 +282,17 @@ namespace Project { GLib.debug("SKIP %s - .bjs",fn); continue; } - if (Regex.match_simple("\\.o$", fn)) { + + if (Regex.match_simple("\\~$", fn)) { + GLib.debug("SKIP %s - ~",fn); + continue; + } + if (Regex.match_simple("\\.stamp$", fn)) { GLib.debug("SKIP %s - .o",fn); continue; } - if (Regex.match_simple("\\~$", fn)) { - GLib.debug("SKIP %s - ~",fn); + if (Regex.match_simple("stamp-h1$", GLib.Path.get_basename(fn))) { + GLib.debug("SKIP %s - .o",fn); continue; }