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
This commit is contained in:
Enrico Tröger 2008-12-04 16:17:04 +00:00
parent 72d6493932
commit 724ac63ac1
3 changed files with 15 additions and 7 deletions

View File

@ -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 <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -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

View File

@ -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