aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-08-04 17:38:17 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2017-08-04 17:39:46 +0300
commite2e9e4647ae1baf3de116bc52f1f73b8cf221c76 (patch)
tree4c7f88a92aed8ebe28d1e0584737bbe9ec1d2689
parent9d9f34d1ef0483fc012ea283e649d507ff410638 (diff)
downloadvmod-variable-e2e9e4647ae1baf3de116bc52f1f73b8cf221c76.tar.gz
vmod-variable-e2e9e4647ae1baf3de116bc52f1f73b8cf221c76.tar.bz2
Switch to new acvmod
-rw-r--r--Makefile.am27
m---------acvmod0
-rw-r--r--configure.ac6
-rw-r--r--git2chg.awk75
-rw-r--r--src/Makefile.am36
-rw-r--r--src/variable.c39
-rw-r--r--src/variable.vcc20
-rw-r--r--tests/atlocal.in7
-rw-r--r--tests/clear.at4
-rw-r--r--tests/complex.at4
-rw-r--r--tests/defined.at4
-rw-r--r--tests/duration.at4
-rw-r--r--tests/gstring.at4
-rw-r--r--tests/int.at4
-rw-r--r--tests/queryset00.at6
-rw-r--r--tests/queryset01.at6
-rw-r--r--tests/real.at4
-rw-r--r--tests/regset.at6
-rw-r--r--tests/string.at4
-rw-r--r--tests/testsuite.at48
-rw-r--r--tests/type_of.at4
-rw-r--r--tests/unset.at4
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
16ACLOCAL_AMFLAGS = -I m4 -I acvmod 17ACLOCAL_AMFLAGS = -I m4 -I acvmod
@@ -19,12 +20,4 @@ SUBDIRS = src tests
19 20
20AM_DISTCHECK_CONFIGURE_FLAGS=--without-vmoddir 21include acvmod/top.am
21
22EXTRA_DIST=git2chg.awk
23 22
24.PHONY: ChangeLog
25ChangeLog:
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 @@
16AC_PREREQ(2.69) 16AC_PREREQ(2.69)
17AC_INIT([vmod-variable], [1.0.90-4.1.0], [gray@gnu.org]) 17AC_INIT([vmod-variable], [1.0.92], [gray@gnu.org])
18AC_CONFIG_AUX_DIR([build-aux]) 18AC_CONFIG_AUX_DIR([build-aux])
@@ -51,3 +51,3 @@ AC_CHECK_LIB(pcre, pcre_compile,,
51 51
52AM_VARNISHAPI 52AM_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
17BEGIN {
18 if (since)
19 split(since,since_a,"-")
20}
21
22function 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 }
52NF==0 {
53 runlen++
54 next
55}
56{ if (runlen) { runlen = 0; print "" }
57 print "\t" $0 }
58
59END {
60 if (append) {
61 print ""
62 while ((getline < append) > 0) {
63 if (match($0, /^Local *Variables:/))
64 break
65 print
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
17AM_CPPFLAGS=\ 17AM_CPPFLAGS=\
18 -I$(VARNISHSRC)/include\ 18 $(VARNISHAPI_CFLAGS)\
19 -I$(VARNISHSRC)/bin/varnishd\
20 -I$(VARNISHSRC)\
21 -DLOCALSTATEDIR=\"$(localstatedir)\" 19 -DLOCALSTATEDIR=\"$(localstatedir)\"
22 20
23dist_man_MANS=vmod-variable.3 vmod_variable.3
24
25vmoddir = $(VMODDIR) 21vmoddir = $(VMODDIR)
@@ -40,3 +36,2 @@ CLEANFILES = vcc_if.c vcc_if.h *.rst
40 36
41vmodtool = $(VARNISHSRC)/lib/libvcc/vmodtool.py
42vmodtoolargs = --strict 37vmodtoolargs = --strict
@@ -44,7 +39,14 @@ vccfile = $(top_srcdir)/src/variable.vcc
44 39
45vcc_if.c vcc_if.h: $(vmodtool) $(vccfile) 40vcc_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
48EXTRA_DIST = \ 43EXTRA_DIST = \
49 variable.vcc 44 variable.vcc\
45 vmod_variable.man.rst\
46 vmod_variable.rst
47
48dist_man_MANS=vmod_variable.3 vmod-variable.3
49
50DISTCLEANFILES=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