From 724ac63ac10826290304ee3c86962664cc19eb93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 4 Dec 2008 16:17:04 +0000 Subject: [PATCH] Add command line option to suppress status output. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3316 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 3 +++ plugins/geanyfunctions.h | 9 ++++++--- plugins/genapi.py | 10 ++++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5205641c..dcc0c683 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ * src/main.c, src/document.c, src/symbols.c: Don't mark console messages as translatable. Add two comments for translators. + * plugins/genapi.py: + Beatify the header comments of the generated API file. + Add command line option to suppress status output. 2008-12-04 Nick Treleaven diff --git a/plugins/geanyfunctions.h b/plugins/geanyfunctions.h index 87ddf530..6e31d0d3 100644 --- a/plugins/geanyfunctions.h +++ b/plugins/geanyfunctions.h @@ -1,6 +1,9 @@ -/* @file geanyfunctions.h @ref geany_functions wrappers. -This allows the use of normal API function names in plugins. -You need to declare the @ref geany_functions symbol yourself. */ +/* This file is generated automatically by genapi.py - do not edit. + * + * @file geanyfunctions.h @ref geany_functions wrappers. + * This allows the use of normal API function names in plugins. + * You need to declare the @ref geany_functions symbol yourself. + */ #ifndef GEANY_FUNCTIONS_H #define GEANY_FUNCTIONS_H diff --git a/plugins/genapi.py b/plugins/genapi.py index 1c3cdf64..69067933 100755 --- a/plugins/genapi.py +++ b/plugins/genapi.py @@ -63,9 +63,10 @@ if __name__ == "__main__": sys.exit("No function names read!") f = open(outfile, 'w') - print >>f, '/* @file %s @ref geany_functions wrappers. \n' % (outfile) +\ - 'This allows the use of normal API function names in plugins.\n' +\ - 'You need to declare the @ref geany_functions symbol yourself. */\n' + print >>f, '/* This file is generated automatically by genapi.py - do not edit.\n *\n' +\ + ' * @file %s @ref geany_functions wrappers.\n' % (outfile) +\ + ' * This allows the use of normal API function names in plugins.\n' +\ + ' * You need to declare the @ref geany_functions symbol yourself.\n */\n' print >>f, '#ifndef GEANY_FUNCTIONS_H' print >>f, '#define GEANY_FUNCTIONS_H\n' for fname in fnames: @@ -74,4 +75,5 @@ if __name__ == "__main__": print >>f, '\n#endif' f.close - print 'Generated ' + outfile + if not '-q' in sys.argv: + print 'Generated ' + outfile