From 6cfe6f8fe1b7506e772403fecc9d7298fc52dc74 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 16 Feb 2009 16:17:03 +0200 Subject: Improve keyword (meta) expansion, add testsuite framework * src/meta.c: New file. * src/Makefile.am (wydawca_SOURCES): Add meta.c. * Makefile.am (SUBDIRS): Add tests. * configure.ac: Initialize testsuite. * src/cmdline.opt: Add preprocessor-related options: --[no-]preprocessor, -E * src/mail.c, src/triplet.c, src/verify.c, src/wydawca.c, src/wydawca.h: Use new expansion functions. * src/update-2.0.awk: Replace % markup with $. * etc/wydawca.rc: Switch to new meta-variable syntax. * gnulib.modules: Add c-ctype. * doc/Makefile.am (check-options): Rewrite. * doc/wydawca.texi: Mark unrevised/obsolete material. * tests/: New directory --- etc/wydawca.rc | 90 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 45 insertions(+), 45 deletions(-) (limited to 'etc') diff --git a/etc/wydawca.rc b/etc/wydawca.rc index c722fa6..205c4e0 100644 --- a/etc/wydawca.rc +++ b/etc/wydawca.rc @@ -59,13 +59,13 @@ access-method project-owner { "WHERE user_group.user_id=user.user_id " "AND user_group.group_id=groups.group_id " "AND user_group.admin_flags = 'A' " - "AND groups.unix_group_name='%p'"); + "AND groups.unix_group_name='$p'"); } access-method user-data { type sql; params (default, - "SELECT email, realname FROM user WHERE user_name='%{user}'"); + "SELECT email, realname FROM user WHERE user_name='${user}'"); } access-method verify-user { @@ -76,13 +76,13 @@ access-method verify-user { "WHERE user_group.user_id=user.user_id " "AND user_group.group_id=groups.group_id " "AND user_group.admin_flags = 'A' " - "AND groups.unix_group_name='%p' AND user.user_name='%u'"); + "AND groups.unix_group_name='$p' AND user.user_name='$u'"); } access-method gpg-key { type sql; params (default, - "SELECT gpg_key FROM user WHERE user_name='%u'"); + "SELECT gpg_key FROM user WHERE user_name='$u'"); } ############################################################################# @@ -116,22 +116,22 @@ mail-statistics { message <. +releases for ${project}, please contact . Otherwise, let us know so we could undertake appropriate measures. Regards, @@ -209,13 +209,13 @@ notify-event { event bad-directive-signature; recipient user; message <