aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--build-aux/gnulib.modules1
-rw-r--r--doc/cflow.texi6
-rw-r--r--lib/.cvsignore2
-rw-r--r--src/main.c15
-rw-r--r--tests/version.at6
6 files changed, 25 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index a0a5ca1..b1701af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,12 @@
12007-05-18 Sergey Poznyakoff <gray@gnu.org.ua> 12007-05-18 Sergey Poznyakoff <gray@gnu.org.ua>
2 2
3 * build-aux/gnulib.modules: Add version-etc
4 * src/main.c, doc/cflow.texi: Remove --license option
5 * tests/version.at: Update
6
3 * bootstrap.conf: New file 7 * bootstrap.conf: New file
4 * build-aux/bootstrap: Replaced from the gnulib CVS 8 * build-aux/bootstrap: Replaced from the gnulib CVS
5 * configure.ac: Update 9 * configure.ac: Update
6 * po/Makevars: Remove automatically generated file 10 * po/Makevars: Remove automatically generated file
7 * src/main.c: Remove #include <strndup.h> 11 * src/main.c: Remove #include <strndup.h>
8 * po/da.po, po/pl.po, po/uk.po, po/vi.po: Removed. Translations 12 * po/da.po, po/pl.po, po/uk.po, po/vi.po: Removed. Translations
diff --git a/build-aux/gnulib.modules b/build-aux/gnulib.modules
index 3a844de..f23e251 100644
--- a/build-aux/gnulib.modules
+++ b/build-aux/gnulib.modules
@@ -6,6 +6,7 @@ obstack
6lstat 6lstat
7malloc 7malloc
8error 8error
9hash 9hash
10gettext 10gettext
11snprintf 11snprintf
12version-etc \ No newline at end of file
diff --git a/doc/cflow.texi b/doc/cflow.texi
index 0acf1d2..a62fecf 100644
--- a/doc/cflow.texi
+++ b/doc/cflow.texi
@@ -1189,18 +1189,12 @@ include in the output. Valid @var{spec} symbols are:
1189@item x 1189@item x
1190 All data symbols, both external and static. 1190 All data symbols, both external and static.
1191@end table 1191@end table
1192 1192
1193For more information, @xref{Symbols}. 1193For more information, @xref{Symbols}.
1194 1194
1195@cindex @option{-L}
1196@cindex @option{--license}
1197@item -L
1198@itemx --license
1199 Print license and exit.
1200
1201@cindex @option{-l} 1195@cindex @option{-l}
1202@item -l 1196@item -l
1203 @xref{--print-level}. 1197 @xref{--print-level}.
1204 1198
1205@cindex @option{--level-indent} 1199@cindex @option{--level-indent}
1206@item --level-indent=@var{string} 1200@item --level-indent=@var{string}
diff --git a/lib/.cvsignore b/lib/.cvsignore
index 410c714..d63cbed 100644
--- a/lib/.cvsignore
+++ b/lib/.cvsignore
@@ -71,12 +71,14 @@ sys_stat_.h
71sysexits.h 71sysexits.h
72sysexits_.h 72sysexits_.h
73unistd.h 73unistd.h
74unistd_.h 74unistd_.h
75vasnprintf.c 75vasnprintf.c
76vasnprintf.h 76vasnprintf.h
77version-etc.c
78version-etc.h
77vsnprintf.c 79vsnprintf.c
78wchar.h 80wchar.h
79wchar_.h 81wchar_.h
80xalloc-die.c 82xalloc-die.c
81xalloc.h 83xalloc.h
82xmalloc.c 84xmalloc.c
diff --git a/src/main.c b/src/main.c
index 78f615d..96d6aad 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,12 +17,13 @@
17 MA 02110-1301 USA */ 17 MA 02110-1301 USA */
18 18
19#include <cflow.h> 19#include <cflow.h>
20#include <argp.h> 20#include <argp.h>
21#include <stdarg.h> 21#include <stdarg.h>
22#include <parser.h> 22#include <parser.h>
23#include <version-etc.h>
23 24
24const char *argp_program_version = "cflow (" PACKAGE_NAME ") " VERSION; 25const char *argp_program_version = "cflow (" PACKAGE_NAME ") " VERSION;
25const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; 26const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
26static char doc[] = N_("generate a program flowgraph") 27static char doc[] = N_("generate a program flowgraph")
27"\v" 28"\v"
28N_("* The effect of each option marked with an asterisk is reversed if the option's long name is prefixed with `no-'. For example, --no-cpp cancels --cpp."); 29N_("* The effect of each option marked with an asterisk is reversed if the option's long name is prefixed with `no-'. For example, --no-cpp cancels --cpp.");
@@ -744,18 +745,32 @@ init()
744 level_end[1] = ""; 745 level_end[1] = "";
745 746
746 init_lex(debug > 1); 747 init_lex(debug > 1);
747 init_parse(); 748 init_parse();
748} 749}
749 750
751const char version_etc_copyright[] =
752 /* Do *not* mark this string for translation. %s is a copyright
753 symbol suitable for this locale, and %d is the copyright
754 year. */
755 "Copyright %s 2005, 2006, %d Sergey Poznyakoff";
756
757static void
758cflow_version(FILE *stream, struct argp_state *state)
759{
760 version_etc(stream, "cflow", PACKAGE_NAME, PACKAGE_VERSION,
761 "Sergey Poznyakoff", NULL);
762}
763
750int 764int
751main(int argc, char **argv) 765main(int argc, char **argv)
752{ 766{
753 int index; 767 int index;
754 768
755 program_name = argv[0]; /* Until gnulib provides a better way */ 769 program_name = argv[0]; /* Until gnulib provides a better way */
770 argp_program_version_hook = cflow_version;
756 771
757 setlocale(LC_ALL, ""); 772 setlocale(LC_ALL, "");
758 bindtextdomain(PACKAGE, LOCALEDIR); 773 bindtextdomain(PACKAGE, LOCALEDIR);
759 textdomain(PACKAGE); 774 textdomain(PACKAGE);
760 775
761 register_output("gnu", gnu_output_handler, NULL); 776 register_output("gnu", gnu_output_handler, NULL);
diff --git a/tests/version.at b/tests/version.at
index 4910be5..f75923f 100644
--- a/tests/version.at
+++ b/tests/version.at
@@ -1,8 +1,8 @@
1# This file is part of GNU cflow testsuite. -*- Autotest -*- 1# This file is part of GNU cflow testsuite. -*- Autotest -*-
2# Copyright (C) 2005 Sergey Poznyakoff 2# Copyright (C) 2005, 2007 Sergey Poznyakoff
3# 3#
4# This program is free software; you can redistribute it and/or 4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License as 5# modify it under the terms of the GNU General Public License as
6# published by the Free Software Foundation; either version 2, or (at 6# published by the Free Software Foundation; either version 2, or (at
7# your option) any later version. 7# your option) any later version.
8# 8#
@@ -16,15 +16,15 @@
16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17# 02110-1301 USA. 17# 02110-1301 USA.
18 18
19AT_SETUP([cflow version]) 19AT_SETUP([cflow version])
20AT_KEYWORDS([version]) 20AT_KEYWORDS([version])
21 21
22AT_CHECK([cflow --version], 22AT_CHECK([cflow --version | sed 1q],
23 [0], 23 [0],
24 [cflow (AT_PACKAGE_NAME) AT_PACKAGE_VERSION 24 [AT_PACKAGE_TARNAME (AT_PACKAGE_NAME) AT_PACKAGE_VERSION
25], 25],
26[], 26[],
27[ 27[
28echo '==============================================================' 28echo '=============================================================='
29echo 'WARNING: Not using the proper version, *all* checks dubious...' 29echo 'WARNING: Not using the proper version, *all* checks dubious...'
30echo '==============================================================' 30echo '=============================================================='

Return to:

Send suggestions and report system problems to the System administrator.