[git] GnuPG - branch, master, updated. gnupg-2.1.13-122-g511c252
by Werner Koch
cvs at cvs.gnupg.org
Wed Jul 6 19:37:27 CEST 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".
The branch, master has been updated
via 511c2522b95333226a5e45e538fed29dd44c9be3 (commit)
from e5896da666551da5322b2ae5458d429b9e60241e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 511c2522b95333226a5e45e538fed29dd44c9be3
Author: Werner Koch <wk at gnupg.org>
Date: Wed Jul 6 19:35:15 2016 +0200
doc: Escape file names in generated macros.
* doc/mkdefsinc.c (print_filename): New.
(main): Use it here.
--
Our Jenkins uses an @ in directory names and thus our builds break.
Signed-off-by: Werner Koch <wk at gnupg.org>
diff --git a/doc/mkdefsinc.c b/doc/mkdefsinc.c
index f3e2f35..b8fbed6 100644
--- a/doc/mkdefsinc.c
+++ b/doc/mkdefsinc.c
@@ -140,6 +140,27 @@ get_date_from_files (char **files)
}
+/* We need to escape file names for Texinfo. */
+static void
+print_filename (const char *prefix, const char *name)
+{
+ const char *s;
+
+ fputs (prefix, stdout);
+ for (s=name; *s; s++)
+ switch (*s)
+ {
+ case '@': fputs ("@atchar{}", stdout); break;
+ case '{': fputs ("@lbracechar{}", stdout); break;
+ case '}': fputs ("@rbracechar{}", stdout); break;
+ case ',': fputs ("@comma{}", stdout); break;
+ case '\\':fputs ("@backslashchar{}", stdout); break;
+ case '#': fputs ("@hashchar{}", stdout); break;
+ default: putchar (*s); break;
+ }
+ putchar('\n');
+}
+
int
main (int argc, char **argv)
@@ -288,17 +309,16 @@ main (int argc, char **argv)
fputs ("\n at c Directories\n\n", stdout);
- fputs ("@set BINDIR " GNUPG_BINDIR "\n"
- "@set LIBEXECDIR " GNUPG_LIBEXECDIR "\n"
- "@set LIBDIR " GNUPG_LIBDIR "\n"
- "@set DATADIR " GNUPG_DATADIR "\n"
- "@set SYSCONFDIR " GNUPG_SYSCONFDIR "\n"
- "@set LOCALSTATEDIR " GNUPG_LOCALSTATEDIR "\n"
- "@set LOCALCACHEDIR " GNUPG_LOCALSTATEDIR
- /* */ "/cache/" PACKAGE_NAME "\n"
- "@set LOCALRUNDIR " GNUPG_LOCALSTATEDIR
- /* */ "/run/" PACKAGE_NAME "\n"
- , stdout);
+ print_filename ("@set BINDIR ", GNUPG_BINDIR );
+ print_filename ("@set LIBEXECDIR ", GNUPG_LIBEXECDIR );
+ print_filename ("@set LIBDIR ", GNUPG_LIBDIR );
+ print_filename ("@set DATADIR ", GNUPG_DATADIR );
+ print_filename ("@set SYSCONFDIR ", GNUPG_SYSCONFDIR );
+ print_filename ("@set LOCALSTATEDIR ", GNUPG_LOCALSTATEDIR );
+ print_filename ("@set LOCALCACHEDIR ", (GNUPG_LOCALSTATEDIR
+ "/cache/" PACKAGE_NAME));
+ print_filename ("@set LOCALRUNDIR ", (GNUPG_LOCALSTATEDIR
+ "/run/" PACKAGE_NAME));
p = xstrdup (GNUPG_SYSCONFDIR);
pend = strrchr (p, '/');
-----------------------------------------------------------------------
Summary of changes:
doc/mkdefsinc.c | 42 +++++++++++++++++++++++++++++++-----------
1 file changed, 31 insertions(+), 11 deletions(-)
hooks/post-receive
--
The GNU Privacy Guard
http://git.gnupg.org
More information about the Gnupg-commits
mailing list