mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
doc: Update yat2m to take care of SOURCE_DATE_EPOCH.
* doc/yat2m.c (main): Set a default for OPT_DATE. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
f6faa05874
commit
139de02b93
14
doc/yat2m.c
14
doc/yat2m.c
@ -1,5 +1,5 @@
|
|||||||
/* yat2m.c - Yet Another Texi 2 Man converter
|
/* yat2m.c - Yet Another Texi 2 Man converter
|
||||||
* Copyright (C) 2005, 2013, 2015, 2016 g10 Code GmbH
|
* Copyright (C) 2005, 2013, 2015, 2016, 2017 g10 Code GmbH
|
||||||
* Copyright (C) 2006, 2008, 2011 Free Software Foundation, Inc.
|
* Copyright (C) 2006, 2008, 2011 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -16,6 +16,12 @@
|
|||||||
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**********************************************
|
||||||
|
* Note: The canonical source of this tool **
|
||||||
|
* is part of libgpg-error and it **
|
||||||
|
* installs yat2m on the build system. **
|
||||||
|
**********************************************/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This is a simple texinfo to man page converter. It needs some
|
This is a simple texinfo to man page converter. It needs some
|
||||||
special markup in th e texinfo and tries best to get a create man
|
special markup in th e texinfo and tries best to get a create man
|
||||||
@ -1478,6 +1484,7 @@ int
|
|||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
int last_argc = -1;
|
int last_argc = -1;
|
||||||
|
const char *s;
|
||||||
|
|
||||||
opt_source = "GNU";
|
opt_source = "GNU";
|
||||||
opt_release = "";
|
opt_release = "";
|
||||||
@ -1611,6 +1618,11 @@ main (int argc, char **argv)
|
|||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
die ("usage: " PGM " [OPTION] [FILE] (try --help for more information)\n");
|
die ("usage: " PGM " [OPTION] [FILE] (try --help for more information)\n");
|
||||||
|
|
||||||
|
/* Take care of supplied timestamp for reproducible builds. See
|
||||||
|
* https://reproducible-builds.org/specs/source-date-epoch/ */
|
||||||
|
if (!opt_date && (s = getenv ("SOURCE_DATE_EPOCH")) && *s)
|
||||||
|
opt_date = s;
|
||||||
|
|
||||||
/* Start processing. */
|
/* Start processing. */
|
||||||
if (argc && strcmp (*argv, "-"))
|
if (argc && strcmp (*argv, "-"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user