aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am37
-rw-r--r--am/grecs.m47
-rw-r--r--build-aux/getopt.m44
-rw-r--r--doc/GRECS_SETUP.34
-rw-r--r--doc/grecs_asprintf.32
-rw-r--r--doc/grecs_config.52
-rw-r--r--doc/grecs_error.32
-rw-r--r--doc/grecs_format_locus.32
-rw-r--r--doc/grecs_format_node.32
-rw-r--r--doc/grecs_format_node_path.32
-rw-r--r--doc/grecs_format_value.32
-rw-r--r--doc/grecs_include_path_setup.32
-rw-r--r--doc/grecs_malloc.32
-rw-r--r--doc/grecs_node_free.32
-rw-r--r--doc/grecs_parse.32
-rw-r--r--doc/grecs_stmt_path.52
-rw-r--r--doc/grecs_strdup.32
-rw-r--r--doc/grecs_tree_free.32
-rw-r--r--doc/tmpl.32
-rw-r--r--src/Make.am2
-rw-r--r--src/grecs.h1
-rw-r--r--src/version.c4
-rw-r--r--tests/Makefile.am4
-rw-r--r--tests/testsuite.at1
-rw-r--r--tests/verok.at63
26 files changed, 47 insertions, 111 deletions
diff --git a/.gitignore b/.gitignore
index 65bf18d..f1a51a5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,4 @@ core
26libtool 26libtool
27m4 27m4
28stamp-h1 28stamp-h1
29gitid.h
diff --git a/Makefile.am b/Makefile.am
index 72619ec..0eb4b0e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,39 @@
1SUBDIRS=src @GRECS_TESTDIR@ @GRECS_DOCDIR@ 1# This file is part of Grecs
2EXTRA_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
3ACLOCAL_AMFLAGS = -I am 17ACLOCAL_AMFLAGS = -I am
18SUBDIRS=. src @GRECS_TESTDIR@ @GRECS_DOCDIR@
19EXTRA_DIST=@GRECS_BUILD_AUX@ gitid.h
20
21noinst_HEADERS = gitid.h
22BUILT_SOURCES = gitid.h
23
24.PHONY: gitid.h
25gitid.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[] = {
700format_authors(_getopt_get_option(authors)) 700format_authors(_getopt_get_option(authors))
701};>]) 701};>])
702 702
703void (*print_version_hook)(FILE *stream);
704
703void 705void
704print_version(const char *program_version, FILE *stream) 706print_version(const char *program_version, FILE *stream)
705{ 707{
@@ -729,6 +731,8 @@ dnl directives between the lines.
729dnl ************************************************************************** 731dnl **************************************************************************
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
21GRECS_SETUP \- Initialize \fBgrecs\fR submodule. 19GRECS_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