diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-16 16:17:03 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-16 16:23:53 +0200 |
commit | 6cfe6f8fe1b7506e772403fecc9d7298fc52dc74 (patch) | |
tree | 64e579d8895bfecfadceb9914f9f795d75e4ccbb /etc | |
parent | 98ca4bb1bc96cc95bdd141cb653b17029957de38 (diff) | |
download | wydawca-6cfe6f8fe1b7506e772403fecc9d7298fc52dc74.tar.gz wydawca-6cfe6f8fe1b7506e772403fecc9d7298fc52dc74.tar.bz2 |
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
Diffstat (limited to 'etc')
-rw-r--r-- | etc/wydawca.rc | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/etc/wydawca.rc b/etc/wydawca.rc index c722fa6..205c4e0 100644 --- a/etc/wydawca.rc +++ b/etc/wydawca.rc @@ -61,3 +61,3 @@ access-method project-owner { "AND user_group.admin_flags = 'A' " - "AND groups.unix_group_name='%p'"); + "AND groups.unix_group_name='$p'"); } @@ -67,3 +67,3 @@ access-method user-data { params (default, - "SELECT email, realname FROM user WHERE user_name='%{user}'"); + "SELECT email, realname FROM user WHERE user_name='${user}'"); } @@ -78,3 +78,3 @@ access-method verify-user { "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'"); } @@ -84,3 +84,3 @@ access-method gpg-key { params (default, - "SELECT gpg_key FROM user WHERE user_name='%u'"); + "SELECT gpg_key FROM user WHERE user_name='$u'"); } @@ -118,18 +118,18 @@ Subject: Wydawca stats -This is to notify you that the run of wydawca on %{date} +This is to notify you that the run of wydawca on ${date} caused the following results: -errors ............................. %{stat:errors} -warning ............................ %{stat:warnings} -bad signatures ..................... %{stat:bad_signatures} -access violation attempts .......... %{stat:access_violations} -complete triplets .................. %{stat:complete_triplets} -incomplete triplets ................ %{stat:incomplete_triplets} -bad triplets ....................... %{stat:bad_triplets} -expired triplets ................... %{stat:expired_triplets} -triplet successes .................. %{stat:triplet_success} -files uploaded ..................... %{stat:uploads} -files archived ..................... %{stat:archives} -symlinks created ................... %{stat:symlinks} -symlinks removed ................... %{stat:rmsymlinks} +errors ............................. ${stat:errors} +warning ............................ ${stat:warnings} +bad signatures ..................... ${stat:bad_signatures} +access violation attempts .......... ${stat:access_violations} +complete triplets .................. ${stat:complete_triplets} +incomplete triplets ................ ${stat:incomplete_triplets} +bad triplets ....................... ${stat:bad_triplets} +expired triplets ................... ${stat:expired_triplets} +triplet successes .................. ${stat:triplet_success} +files uploaded ..................... ${stat:uploads} +files archived ..................... ${stat:archives} +symlinks created ................... ${stat:symlinks} +symlinks removed ................... ${stat:rmsymlinks} @@ -147,7 +147,7 @@ notify-event { message <<EOT -Subject: Upload of %{project} successful +Subject: Upload of ${project} successful -Upload of %{project} to %{dir} finished successfully. Files uploaded: +Upload of ${project} to ${dir} finished successfully. Files uploaded: -%{triplet:upload} +${triplet:upload} @@ -164,8 +164,8 @@ notify-event { message <<EOT -Subject: Upload of %{project} successful +Subject: Upload of ${project} successful -%{user:real-name} (%{user:email}) successfully uploaded files -for %{project} to %{dir}. Files uploaded: +${user:real-name} (${user:email}) successfully uploaded files +for ${project} to ${dir}. Files uploaded: -%{triplet:upload} +${triplet:upload} @@ -183,13 +183,13 @@ notify-event { message <<EOT -Subject: Suspicious upload of %{project} +Subject: Suspicious upload of ${project} -Someone not authorized to make releases for %{project} -has attempted to upload the following files to %{dir}: +Someone not authorized to make releases for ${project} +has attempted to upload the following files to ${dir}: -%{triplet:full} +${triplet:full} This upload has been ignored and the files removed. The person who attempted -the upload was %{user:real-name}, user name %{user:name}, email %{user:email}. +the upload was ${user:real-name}, user name ${user:name}, email ${user:email}. If you think this is an error and wish this user to be authorized to make -releases for %{project}, please contact <puszcza-hackers@gnu.org.ua>. +releases for ${project}, please contact <puszcza-hackers@gnu.org.ua>. Otherwise, let us know so we could undertake appropriate measures. @@ -211,5 +211,5 @@ notify-event { message <<EOT -Subject: Suspicious upload of %{project} +Subject: Suspicious upload of ${project} -Someone (apparently you), has tried to make a release for %{project}. +Someone (apparently you), has tried to make a release for ${project}. However, the signature of the directive file was wrong, which looks @@ -217,3 +217,3 @@ suspicious. The person uploaded the following files: -%{triplet:full} +${triplet:full} @@ -236,9 +236,9 @@ notify-event { message <<EOT -Subject: Suspicious upload of %{project} +Subject: Suspicious upload of ${project} -%{user:real-name} (%{user:email}) has tried to make a release -for %{project}. However, the signature of the directive file was wrong, +${user:real-name} (${user:email}) has tried to make a release +for ${project}. However, the signature of the directive file was wrong, which looks suspicious. The person uploaded the following files: -%{triplet:full} +${triplet:full} @@ -261,5 +261,5 @@ notify-event { message <<EOT -Subject: Suspicious upload of %{project} +Subject: Suspicious upload of ${project} -Someone (apparently you), has tried to make a release for %{project}. +Someone (apparently you), has tried to make a release for ${project}. However, the detached signature signature was wrong, which looks @@ -267,3 +267,3 @@ suspicious. The person uploaded the following files: -%{triplet:full} +${triplet:full} @@ -286,9 +286,9 @@ notify-event { message <<EOT -Subject: Suspicious upload of %{project} +Subject: Suspicious upload of ${project} -%{user:real-name} (%{user:email}) has tried to make a release -for %{project}. However, the detached signature file was wrong, +${user:real-name} (${user:email}) has tried to make a release +for ${project}. However, the detached signature file was wrong, which looks suspicious. The person uploaded the following files: -%{triplet:full} +${triplet:full} |