diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 37 | ||||
-rw-r--r-- | am/grecs.m4 | 7 | ||||
-rw-r--r-- | build-aux/getopt.m4 | 4 | ||||
-rw-r--r-- | doc/GRECS_SETUP.3 | 4 | ||||
-rw-r--r-- | doc/grecs_asprintf.3 | 2 | ||||
-rw-r--r-- | doc/grecs_config.5 | 2 | ||||
-rw-r--r-- | doc/grecs_error.3 | 2 | ||||
-rw-r--r-- | doc/grecs_format_locus.3 | 2 | ||||
-rw-r--r-- | doc/grecs_format_node.3 | 2 | ||||
-rw-r--r-- | doc/grecs_format_node_path.3 | 2 | ||||
-rw-r--r-- | doc/grecs_format_value.3 | 2 | ||||
-rw-r--r-- | doc/grecs_include_path_setup.3 | 2 | ||||
-rw-r--r-- | doc/grecs_malloc.3 | 2 | ||||
-rw-r--r-- | doc/grecs_node_free.3 | 2 | ||||
-rw-r--r-- | doc/grecs_parse.3 | 2 | ||||
-rw-r--r-- | doc/grecs_stmt_path.5 | 2 | ||||
-rw-r--r-- | doc/grecs_strdup.3 | 2 | ||||
-rw-r--r-- | doc/grecs_tree_free.3 | 2 | ||||
-rw-r--r-- | doc/tmpl.3 | 2 | ||||
-rw-r--r-- | src/Make.am | 2 | ||||
-rw-r--r-- | src/grecs.h | 1 | ||||
-rw-r--r-- | src/version.c | 4 | ||||
-rw-r--r-- | tests/Makefile.am | 4 | ||||
-rw-r--r-- | tests/testsuite.at | 1 | ||||
-rw-r--r-- | tests/verok.at | 63 |
26 files changed, 47 insertions, 111 deletions
@@ -26,3 +26,4 @@ core | |||
26 | libtool | 26 | libtool |
27 | m4 | 27 | m4 |
28 | stamp-h1 | 28 | stamp-h1 |
29 | gitid.h | ||
diff --git a/Makefile.am b/Makefile.am index 72619ec..0eb4b0e 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -1,6 +1,39 @@ | |||
1 | SUBDIRS=src @GRECS_TESTDIR@ @GRECS_DOCDIR@ | 1 | # This file is part of Grecs |
2 | EXTRA_DIST=@GRECS_BUILD_AUX@ | 2 | # Copyright (C) 2007, 2009-2011 Sergey Poznyakoff |
3 | # | ||
4 | # Grecs is free software; you can redistribute it and/or modify | ||
5 | # it under the terms of the GNU General Public License as published by | ||
6 | # the Free Software Foundation; either version 3, or (at your option) | ||
7 | # any later version. | ||
8 | # | ||
9 | # Grecs is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | # GNU General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with Grecs. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
3 | ACLOCAL_AMFLAGS = -I am | 17 | ACLOCAL_AMFLAGS = -I am |
18 | SUBDIRS=. src @GRECS_TESTDIR@ @GRECS_DOCDIR@ | ||
19 | EXTRA_DIST=@GRECS_BUILD_AUX@ gitid.h | ||
20 | |||
21 | noinst_HEADERS = gitid.h | ||
22 | BUILT_SOURCES = gitid.h | ||
23 | |||
24 | .PHONY: gitid.h | ||
25 | gitid.h: | ||
26 | @if test -d .git; then \ | ||
27 | url=`git config --get remote.origin.url | sed 's|.*://||'`; \ | ||
28 | if test "$$url" = "git.gnu.org.ua/gitroot/grecs.git"; then \ | ||
29 | dirty=`git diff-index --name-only HEAD 2>/dev/null` || dirty=;\ | ||
30 | test -n "$$dirty" && dirty="-dirty"; \ | ||
31 | ID=`git log -1 --pretty='%H-%ct-%ae'`$$dirty;\ | ||
32 | echo "#define GRECS_GIT_ID \"$$ID\"" > gitid.tmp; \ | ||
33 | cmp gitid.tmp gitid.h >/dev/null 2>&1 || mv gitid.tmp gitid.h; \ | ||
34 | rm -f gitid.tmp; \ | ||
35 | fi; \ | ||
36 | fi; | ||
4 | 37 | ||
5 | @GRECS_CHANGELOG@.PHONY: ChangeLog | 38 | @GRECS_CHANGELOG@.PHONY: ChangeLog |
6 | @GRECS_CHANGELOG@ChangeLog: | 39 | @GRECS_CHANGELOG@ChangeLog: |
diff --git a/am/grecs.m4 b/am/grecs.m4 index e4f8671..8202903 100644 --- a/am/grecs.m4 +++ b/am/grecs.m4 | |||
@@ -149,14 +149,7 @@ AC_DEFUN([GRECS_SETUP],[ | |||
149 | ]) | 149 | ]) |
150 | _GRECS_IF_OPTION_SET([git2chg],[GRECS_BUILD_AUX="$GRECS_BUILD_AUX build-aux/git2chg.awk"]) | 150 | _GRECS_IF_OPTION_SET([git2chg],[GRECS_BUILD_AUX="$GRECS_BUILD_AUX build-aux/git2chg.awk"]) |
151 | 151 | ||
152 | # Make sure package versioning is compatible with version.at: | ||
153 | s=`echo $PACKAGE_VERSION | [sed 's/[0-9][0-9]*\.[0-9][0-9]*\(\.[0-9][0-9]\)\?\([^a-zA-Z_0-9].*\)\?//'`] | ||
154 | if test -z "$s"; then | ||
155 | GRECS_VEROK_AT=verok.at | ||
156 | fi | ||
157 | |||
158 | AC_SUBST([GRECS_SRCDIR],$1) | 152 | AC_SUBST([GRECS_SRCDIR],$1) |
159 | AC_SUBST([GRECS_VEROK_AT]) | ||
160 | AC_SUBST([GRECS_BUILD_AUX]) | 153 | AC_SUBST([GRECS_BUILD_AUX]) |
161 | AC_SUBST([GRECS_INCLUDES]) | 154 | AC_SUBST([GRECS_INCLUDES]) |
162 | AC_SUBST([GRECS_TESTDIR]) | 155 | AC_SUBST([GRECS_TESTDIR]) |
diff --git a/build-aux/getopt.m4 b/build-aux/getopt.m4 index b63baaf..83a1e35 100644 --- a/build-aux/getopt.m4 +++ b/build-aux/getopt.m4 | |||
@@ -700,6 +700,8 @@ char *program_author[] = { | |||
700 | format_authors(_getopt_get_option(authors)) | 700 | format_authors(_getopt_get_option(authors)) |
701 | };>]) | 701 | };>]) |
702 | 702 | ||
703 | void (*print_version_hook)(FILE *stream); | ||
704 | |||
703 | void | 705 | void |
704 | print_version(const char *program_version, FILE *stream) | 706 | print_version(const char *program_version, FILE *stream) |
705 | { | 707 | { |
@@ -729,6 +731,8 @@ dnl directives between the lines. | |||
729 | dnl ************************************************************************** | 731 | dnl ************************************************************************** |
730 | fputs (_("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\n"), | 732 | fputs (_("License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\n"), |
731 | stream); | 733 | stream); |
734 | if (print_version_hook) | ||
735 | print_version_hook (stream); | ||
732 | _getopt_if_option_set([<authors>],[< | 736 | _getopt_if_option_set([<authors>],[< |
733 | width = strlen (written_by); | 737 | width = strlen (written_by); |
734 | fputs (written_by, stream); | 738 | fputs (written_by, stream); |
diff --git a/doc/GRECS_SETUP.3 b/doc/GRECS_SETUP.3 index af0f8e0..c24399e 100644 --- a/doc/GRECS_SETUP.3 +++ b/doc/GRECS_SETUP.3 | |||
@@ -13,10 +13,8 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. |
16 | .\" This file is part of SLB. | ||
17 | .\" Copyright (C) 2011 Sergey Poznyakoff | ||
18 | .\" | 16 | .\" |
19 | .TH GRECS_SETUP 3 "May 5, 2011" "GRECS" "Grecs User Reference" | 17 | .TH GRECS_SETUP 3 "May 8, 2011" "GRECS" "Grecs User Reference" |
20 | .SH NAME | 18 | .SH NAME |
21 | GRECS_SETUP \- Initialize \fBgrecs\fR submodule. | 19 | GRECS_SETUP \- Initialize \fBgrecs\fR submodule. |
22 | .SH SYNOPSIS | 20 | .SH SYNOPSIS |
diff --git a/doc/grecs_asprintf.3 b/doc/grecs_asprintf.3 index 73be7f0..daa7f83 100644 --- a/doc/grecs_asprintf.3 +++ b/doc/grecs_asprintf.3 | |||
@@ -13,8 +13,6 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. |
16 | .\" This file is part of SLB. | ||
17 | .\" Copyright (C) 2011 Sergey Poznyakoff | ||
18 | .\" | 16 | .\" |
19 | .TH GRECS_ASPRINTF 3 "May 4, 2011" "GRECS" "Grecs User Reference" | 17 | .TH GRECS_ASPRINTF 3 "May 4, 2011" "GRECS" "Grecs User Reference" |
20 | .SH NAME | 18 | .SH NAME |
diff --git a/doc/grecs_config.5 b/doc/grecs_config.5 index 579875b..e4ad4f3 100644 --- a/doc/grecs_config.5 +++ b/doc/grecs_config.5 | |||
@@ -13,8 +13,6 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. |
16 | .\" This file is part of SLB. | ||
17 | .\" Copyright (C) 2011 Sergey Poznyakoff | ||
18 | .\" | 16 | .\" |
19 | .TH GRECS_CONFIG 3 "May 4, 2011" "GRECS" "Grecs User Reference" | 17 | .TH GRECS_CONFIG 3 "May 4, 2011" "GRECS" "Grecs User Reference" |
20 | .SH NAME | 18 | .SH NAME |
diff --git a/doc/grecs_error.3 b/doc/grecs_error.3 index d747d9a..4f82dc5 100644 --- a/doc/grecs_error.3 +++ b/doc/grecs_error.3 | |||
@@ -13,8 +13,6 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. |
16 | .\" This file is part of SLB. | ||
17 | .\" Copyright (C) 2011 Sergey Poznyakoff | ||
18 | .\" | 16 | .\" |
19 | .TH GRECS_ERROR 3 "May 4, 2011" "GRECS" "Grecs User Reference" | 17 | .TH GRECS_ERROR 3 "May 4, 2011" "GRECS" "Grecs User Reference" |
20 | .SH NAME | 18 | .SH NAME |
diff --git a/doc/grecs_format_locus.3 b/doc/grecs_format_locus.3 index 90ffa03..a7743f1 100644 --- a/doc/grecs_format_locus.3 +++ b/doc/grecs_format_locus.3 | |||
@@ -13,8 +13,6 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. |
16 | .\" This file is part of SLB. | ||
17 | .\" Copyright (C) 2011 Sergey Poznyakoff | ||
18 | .\" | 16 | .\" |
19 | .TH GRECS_FORMAT_LOCUS 3 "May 4, 2011" "GRECS" "Grecs User Reference" | 17 | .TH GRECS_FORMAT_LOCUS 3 "May 4, 2011" "GRECS" "Grecs User Reference" |
20 | .SH NAME | 18 | .SH NAME |
diff --git a/doc/grecs_format_node.3 b/doc/grecs_format_node.3 index 76cebec..095a494 100644 --- a/doc/grecs_format_node.3 +++ b/doc/grecs_format_node.3 | |||
@@ -13,8 +13,6 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. |
16 | .\" This file is part of SLB. | ||
17 | .\" Copyright (C) 2011 Sergey Poznyakoff | ||
18 | .\" | 16 | .\" |
19 | .TH GRECS_FORMAT_NODE 3 "May 4, 2011" "GRECS" "Grecs User Reference" | 17 | .TH GRECS_FORMAT_NODE 3 "May 4, 2011" "GRECS" "Grecs User Reference" |
20 | .SH NAME | 18 | .SH NAME |
diff --git a/doc/grecs_format_node_path.3 b/doc/grecs_format_node_path.3 index 2f8cff6..bf119e7 100644 --- a/doc/grecs_format_node_path.3 +++ b/doc/grecs_format_node_path.3 | |||
@@ -13,8 +13,6 @@ | |||
13 | .\" | 13 | .\" |
14 | .\" You should have received a copy of the GNU General Public License | 14 | .\" You should have received a copy of the GNU General Public License |
15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. | 15 | .\" along with Grecs. If not, see <http://www.gnu.org/licenses/>. |
16 | .\" This file is part of SLB. | ||
17 | .\" Copyright (C) 2011 Sergey Poznyakoff | ||
18 | .\" | 16 | .\" |
19 | .TH GRECS_F |