[glibmm/gmmproc-refactor] Update usage text of gmmproc.



commit 725a9beae3aed023d3a6c7dd4c51d12c328d3f9b
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Mon Jul 9 21:52:11 2012 +0200

    Update usage text of gmmproc.
    
    Also, bump version of gmmproc to 5.

 tools/gmmproc.in |   50 +++++++++++++++++++++++++-------------------------
 1 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/tools/gmmproc.in b/tools/gmmproc.in
index a7d4d9b..44130f6 100644
--- a/tools/gmmproc.in
+++ b/tools/gmmproc.in
@@ -4,7 +4,7 @@
 # @configure_input@
 #
 ######################################################################
-# gmmproc (version 4)
+# gmmproc (version 5)
 ######################################################################
 #
 # *** WARNING: Only modify gmmproc.in. gmmproc is built. ***
@@ -28,12 +28,6 @@
 #
 ######################################################################
 
-# TODO: Maybe, at some point, this will be moved to mm-common, so path maybe
-# TODO continued: will be fixed instead of generated during configure stage.
-my $g_procdir = $g_libdir . '/@GLIBMM_MODULE_NAME@/proc';
-
-push @INC, $g_procdir . '/pm';
-
 use strict;
 use warnings;
 use IO::File;
@@ -57,49 +51,55 @@ main ();
 
 sub print_usage ()
 {
-  print <<EOF;
+  print <<GMMPROC_USAGE;
 Usage: gmmproc [options] -s|--source dir -d|--destination dir
-       (-l|--list file)|(name1 [name2 [name3 [name4 ...]]]
+       (-l|--list file)|(name1 [name2 [name3 [name4 ...]]])
 
 Options:
   -s dir
-  --source dir          Specify source directory with template files.
+  --source dir                     Specify source directory with template files.
 
   -d dir
-  --destination dir     Specify destination directory for generated files.
+  --destination dir                Specify destination directory for generated
+                                   files.
 
   -l file
-  --list file           Specify a file path containing list of templates
-                        to process.
+  --list file                      Specify a file path containing list of
+                                   templates to process.
 
   -h
-  --help                This usage message.
+  --help                           This usage message.
 
   -g
-  --debug               Leave intermediate output arround for analysis.
-                        Alternatively, set GMMPROC_DEBUG=1 in the environment.
+  --debug                          Leave intermediate output arround for
+                                   analysis.Alternatively, set GMMPROC_DEBUG=1
+                                   in the environment.
 
   -u
-  --unwrapped           Warn about possible unwrapped functions.
-
-  -r basename
-  --gir basename        Specify the gir file base name. Examples: Gio-2.0.gir,
-                        Gtk-3.0.gir.
+  --unwrapped                      Warn about possible unwrapped functions.
 
   -m module
-  --mm-module module    Specify a name of mm module. Examples: glibmm, gtkmm.
+  --mm-module module               Specify a name of mm module. Examples: gtkmm,
+                                   glibmm.
 
   -w namespace
-  --wrap-init-namespace Specify a namespace in which wrap_init() resides.
-                        Examples: Gtk, Gnome::Canvas
+  --wrap-init-namespace namespace  Specify a namespace in which wrap_init()
+                                   resides. Examples: Gtk, Gnome::Canvas
+
+  -i include_path
+  --include include path           Include paths for proc files. Be sure to
+                                   specify the type info directory of current
+                                   project (it is usually something like
+                                   $(top_srcdir)/codegen/proc) as a first one.
 
 This will read template files from source directory and generate files
 to destination directory:
 (srcdir/template.{h,cc}g => destdir/{template.{h,cc},private/template_p.h}).
+And also, gmmproc will generate a wrap_init.cc file in destination directory.
 
 Templates files can be given as either a file containing list of files or passed
 explicitly as a param or both.
-EOF
+GMMPROC_USAGE
 }
 
 sub print_help ($)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]