lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] git commit: Avoid creation of unneeded files
Date Sun, 16 Feb 2014 13:34:11 GMT
Repository: lucy-clownfish
Updated Branches:
  refs/heads/master d0be4926b -> 748a74d9e


Avoid creation of unneeded files

cfc shouldn't create the callbacks.h file and man page directories if no
source directories were specified.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/748a74d9
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/748a74d9
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/748a74d9

Branch: refs/heads/master
Commit: 748a74d9e63c8d20e04583868985de5a459b37dd
Parents: d0be492
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun Feb 16 14:00:47 2014 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sun Feb 16 14:04:19 2014 +0100

----------------------------------------------------------------------
 compiler/c/cfc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/748a74d9/compiler/c/cfc.c
----------------------------------------------------------------------
diff --git a/compiler/c/cfc.c b/compiler/c/cfc.c
index 1dcfe71..2dcc25c 100644
--- a/compiler/c/cfc.c
+++ b/compiler/c/cfc.c
@@ -225,9 +225,11 @@ main(int argc, char **argv) {
     CFCBindCore_write_all_modified(core_binding, 0);
 
     c_binding = CFCC_new(hierarchy, header, footer);
-    CFCC_write_callbacks(c_binding);
     CFCC_write_hostdefs(c_binding);
-    CFCC_write_man_pages(c_binding);
+    if (args.num_source_dirs != 0) {
+        CFCC_write_callbacks(c_binding);
+        CFCC_write_man_pages(c_binding);
+    }
 
     CFCBase_decref((CFCBase*)c_binding);
     CFCBase_decref((CFCBase*)core_binding);


Mime
View raw message