diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-08-04 17:38:17 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-08-04 17:39:46 +0300 |
commit | e2e9e4647ae1baf3de116bc52f1f73b8cf221c76 (patch) | |
tree | 4c7f88a92aed8ebe28d1e0584737bbe9ec1d2689 | |
parent | 9d9f34d1ef0483fc012ea283e649d507ff410638 (diff) | |
download | vmod-variable-e2e9e4647ae1baf3de116bc52f1f73b8cf221c76.tar.gz vmod-variable-e2e9e4647ae1baf3de116bc52f1f73b8cf221c76.tar.bz2 |
Switch to new acvmod
-rw-r--r-- | Makefile.am | 27 | ||||
m--------- | acvmod | 0 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | git2chg.awk | 75 | ||||
-rw-r--r-- | src/Makefile.am | 36 | ||||
-rw-r--r-- | src/variable.c | 39 | ||||
-rw-r--r-- | src/variable.vcc | 20 | ||||
-rw-r--r-- | tests/atlocal.in | 7 | ||||
-rw-r--r-- | tests/clear.at | 4 | ||||
-rw-r--r-- | tests/complex.at | 4 | ||||
-rw-r--r-- | tests/defined.at | 4 | ||||
-rw-r--r-- | tests/duration.at | 4 | ||||
-rw-r--r-- | tests/gstring.at | 4 | ||||
-rw-r--r-- | tests/int.at | 4 | ||||
-rw-r--r-- | tests/queryset00.at | 6 | ||||
-rw-r--r-- | tests/queryset01.at | 6 | ||||
-rw-r--r-- | tests/real.at | 4 | ||||
-rw-r--r-- | tests/regset.at | 6 | ||||
-rw-r--r-- | tests/string.at | 4 | ||||
-rw-r--r-- | tests/testsuite.at | 48 | ||||
-rw-r--r-- | tests/type_of.at | 4 | ||||
-rw-r--r-- | tests/unset.at | 4 |
22 files changed, 112 insertions, 204 deletions
diff --git a/Makefile.am b/Makefile.am index 9afba47..dc90c44 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -1,5 +1,5 @@ | |||
1 | # This file is part of vmod-variable | 1 | # This file is part of vmod_variable. |
2 | # Copyright (C) 2013-2016 Sergey Poznyakoff | 2 | # Copyright (C) 2017 Sergey Poznyakoff |
3 | # | 3 | # |
4 | # Vmod-variable is free software; you can redistribute it and/or modify | 4 | # Vmod_variable is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |
@@ -7,4 +7,4 @@ | |||
7 | # any later version. | 7 | # any later version. |
8 | # | 8 | # |
9 | # Vmod-variable is distributed in the hope that it will be useful, | 9 | # Vmod_variable is distributed in the hope that it will be useful, |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
@@ -12,5 +12,6 @@ | |||
12 | # GNU General Public License for more details. | 12 | # GNU General Public License for more details. |
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 vmod-variable. If not, see <http://www.gnu.org/licenses/>. | 15 | # along with vmod_variable. If not, see <http://www.gnu.org/licenses/>. |
16 | |||
16 | ACLOCAL_AMFLAGS = -I m4 -I acvmod | 17 | ACLOCAL_AMFLAGS = -I m4 -I acvmod |
@@ -19,12 +20,4 @@ SUBDIRS = src tests | |||
19 | 20 | ||
20 | AM_DISTCHECK_CONFIGURE_FLAGS=--without-vmoddir | 21 | include acvmod/top.am |
21 | |||
22 | EXTRA_DIST=git2chg.awk | ||
23 | 22 | ||
24 | .PHONY: ChangeLog | ||
25 | ChangeLog: | ||
26 | $(AM_V_GEN)if test -d .git; then \ | ||
27 | git log --pretty='format:%ct %an <%ae>%n%n%s%n%n%b%n' | \ | ||
28 | awk -f $(top_srcdir)/git2chg.awk > ChangeLog; \ | ||
29 | fi | ||
30 | 23 | ||
diff --git a/acvmod b/acvmod | |||
Subproject f064cf4d7aa1ead1f8607b8b72baf883f015ffc | Subproject 7cbce8ec30898fcc19e3ba25f367156a5859ea8 | ||
diff --git a/configure.ac b/configure.ac index ca5c8f7..2f163d0 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,3 +1,3 @@ | |||
1 | # This file is part of vmod-variable -*- autoconf -*- | 1 | # This file is part of vmod-variable -*- autoconf -*- |
2 | # Copyright (C) 2015-2016 Sergey Poznyakoff | 2 | # Copyright (C) 2015-2017 Sergey Poznyakoff |
3 | # | 3 | # |
@@ -16,3 +16,3 @@ | |||
16 | AC_PREREQ(2.69) | 16 | AC_PREREQ(2.69) |
17 | AC_INIT([vmod-variable], [1.0.90-4.1.0], [gray@gnu.org]) | 17 | AC_INIT([vmod-variable], [1.0.92], [gray@gnu.org]) |
18 | AC_CONFIG_AUX_DIR([build-aux]) | 18 | AC_CONFIG_AUX_DIR([build-aux]) |
@@ -51,3 +51,3 @@ AC_CHECK_LIB(pcre, pcre_compile,, | |||
51 | 51 | ||
52 | AM_VARNISHAPI | 52 | AM_VARNISHAPI([4.1]) |
53 | 53 | ||
diff --git a/git2chg.awk b/git2chg.awk deleted file mode 100644 index 1e75254..0000000 --- a/git2chg.awk +++ /dev/null | |||
@@ -1,75 +0,0 @@ | |||
1 | # This file is part of grecs | ||
2 | # Copyright (C) 2007, 2009-2012 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 | |||
17 | BEGIN { | ||
18 | if (since) | ||
19 | split(since,since_a,"-") | ||
20 | } | ||
21 | |||
22 | function timeok(t, a) { | ||
23 | if (!since) | ||
24 | return 1 | ||
25 | split(t,a,"-") | ||
26 | if (a[1] < since_a[1]) | ||
27 | return 0 | ||
28 | if (a[1] > since_a[1]) | ||
29 | return 1 | ||
30 | if (a[2] < since_a[2]) | ||
31 | return 0 | ||
32 | if (a[2] > since_a[2]) | ||
33 | return 1 | ||
34 | return a[3] > since_a[3] | ||
35 | } | ||
36 | |||
37 | /^[0-9]+ .* +<[^>]+>/ { | ||
38 | s = strftime("%F", $1) | ||
39 | if (!timeok(s)) | ||
40 | exit | ||
41 | sub(/^[0-9]+ +/,"") | ||
42 | if (s == datestr && author == $0) | ||
43 | next | ||
44 | datestr = s | ||
45 | author = $0 | ||
46 | if (runlen) { runlen = 0; print "" } | ||
47 | printf("%s %s\n", datestr, author) | ||
48 | next | ||
49 | } | ||
50 | /^Signed-off-by:/ { next } | ||
51 | /^<unknown>$/ { next } | ||
52 | NF==0 { | ||
53 | runlen++ | ||
54 | next | ||
55 | } | ||
56 | { if (runlen) { runlen = 0; print "" } | ||
57 | print "\t" $0 } | ||
58 | |||
59 | END { | ||
60 | if (append) { | ||
61 | print "" | ||
62 | while ((getline < append) > 0) { | ||
63 | if (match($0, /^Local *Variables:/)) | ||
64 | break | ||
65 | |||
66 | } | ||
67 | } | ||
68 | print "\f" | ||
69 | # Make sure Emacs won't recognize this line: | ||
70 | print "Local", "Variables:" | ||
71 | print "mode: change-log" | ||
72 | print "version-control: never" | ||
73 | print "buffer-read-only: t" | ||
74 | print "End:" | ||
75 | } | ||
diff --git a/src/Makefile.am b/src/Makefile.am index 5396773..bf5eee8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -1,5 +1,5 @@ | |||
1 | # This file is part of vmod-variable | 1 | # This file is part of vmod_variable. |
2 | # Copyright (C) 2015, 2016 Sergey Poznyakoff | 2 | # Copyright (C) 2017 Sergey Poznyakoff |
3 | # | 3 | # |
4 | # Vmod-variable is free software; you can redistribute it and/or modify | 4 | # Vmod_variable is free software; you can redistribute it and/or modify |
5 | # it under the terms of the GNU General Public License as published by | 5 | # it under the terms of the GNU General Public License as published by |
@@ -7,4 +7,4 @@ | |||
7 | # any later version. | 7 | # any later version. |
8 | # | 8 | # |
9 | # Vmod-variable is distributed in the hope that it will be useful, | 9 | # Vmod_variable is distributed in the hope that it will be useful, |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
@@ -12,14 +12,10 @@ | |||
12 | # GNU General Public License for more details. | 12 | # GNU General Public License for more details. |
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 vmod-variable. If not, see <http://www.gnu.org/licenses/>. | 15 | # along with vmod_variable. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 | ||
17 | AM_CPPFLAGS=\ | 17 | AM_CPPFLAGS=\ |
18 | -I$(VARNISHSRC)/include\ | 18 | $(VARNISHAPI_CFLAGS)\ |
19 | -I$(VARNISHSRC)/bin/varnishd\ | ||
20 | -I$(VARNISHSRC)\ | ||
21 | -DLOCALSTATEDIR=\"$(localstatedir)\" | 19 | -DLOCALSTATEDIR=\"$(localstatedir)\" |
22 | 20 | ||
23 | dist_man_MANS=vmod-variable.3 vmod_variable.3 | ||
24 | |||
25 | vmoddir = $(VMODDIR) | 21 | vmoddir = $(VMODDIR) |
@@ -40,3 +36,2 @@ CLEANFILES = vcc_if.c vcc_if.h *.rst | |||
40 | 36 | ||
41 | vmodtool = $(VARNISHSRC)/lib/libvcc/vmodtool.py | ||
42 | vmodtoolargs = --strict | 37 | vmodtoolargs = --strict |
@@ -44,7 +39,14 @@ vccfile = $(top_srcdir)/src/variable.vcc | |||
44 | 39 | ||
45 | vcc_if.c vcc_if.h: $(vmodtool) $(vccfile) | 40 | vcc_if.c vcc_if.h: $(vccfile) |
46 | $(AM_V_GEN)$(PYTHON) $(vmodtool) $(vmodtoolargs) $(vccfile) | 41 | $(AM_V_GEN)$(PYTHON) $(VARNISHAPI_VMODTOOL) $(vmodtoolargs) $(vccfile) |
47 | 42 | ||
48 | EXTRA_DIST = \ | 43 | EXTRA_DIST = \ |
49 | variable.vcc | 44 | variable.vcc\ |
45 | vmod_variable.man.rst\ | ||
46 | vmod_variable.rst | ||
47 | |||
48 | dist_man_MANS=vmod_variable.3 vmod-variable.3 | ||
49 | |||
50 | DISTCLEANFILES=vmod_variable.3 | ||
51 | |||
50 | 52 | ||
diff --git a/src/variable.c b/src/variable.c index 8e75ea2..feaaa21 100644 --- a/src/variable.c +++ b/src/variable.c | |||
@@ -1,3 +1,3 @@ | |||
1 | /* This file is part of vmod-variable | 1 | /* This file is part of vmod-variable |
2 | Copyright (C) 2013-2016 Sergey Poznyakoff | 2 | Copyright (C) 2013-2017 Sergey Poznyako |