r758 - in branches/stable: doc/manual source/src/texk/web2c/lib source/src/texk/web2c/pdftexdir tests/03-deterministic-output
karl at freefriends.org
karl at freefriends.org
Sun Jun 12 18:54:10 CEST 2016
Author: karl
Date: 2016-06-12 16:54:10 +0000 (Sun, 12 Jun 2016)
New Revision: 758
Modified:
branches/stable/doc/manual/pdftex-t.tex
branches/stable/source/src/texk/web2c/lib/ChangeLog
branches/stable/source/src/texk/web2c/lib/texmfmp.c
branches/stable/source/src/texk/web2c/pdftexdir/NEWS
branches/stable/tests/03-deterministic-output/Makefile
Log:
rename SOURCE_DATE_EPOCH_TEX_PRIMITIVES to FORCE_SOURCE_DATE
Modified: branches/stable/doc/manual/pdftex-t.tex
===================================================================
--- branches/stable/doc/manual/pdftex-t.tex 2016-06-03 15:32:51 UTC (rev 757)
+++ branches/stable/doc/manual/pdftex-t.tex 2016-06-12 16:54:10 UTC (rev 758)
@@ -1324,21 +1324,20 @@
builds of documents. (See also \type{\pdfinfoomitdate},
\type{\pdfsuppressptexinfo}, et al.)
-The second, related, environment variable is
-\type{SOURCE_DATE_EPOCH_TEX_PRIMITIVES}. If this is set to~\type{1},
-\TEX's time-related primitives are also initialized from the value of
-\type{SOURCE_DATE_EPOCH}. These primitives are \type{\year},
-\type{\month}, \type{\day}, and \type{\time}. If
-\type{SOURCE_DATE_EPOCH} is not set, setting
-\type{SOURCE_DATE_EPOCH_TEX_PRIMITIVES} has no effect. If
-\type{SOURCE_DATE_EPOCH_TEX_PRIMITIVES} is unset, set to the empty
-string, or set to~\type{0}, the primitives reflect the current time as
-usual. Any other value elicits a warning, and the current time is used.
-(This is useful only if one wants to make reproducible \PDF{}s for a set
-of documents without changing them in any way, e.g., an operating system
-distribution with manuals that use \type{\today}. Except in such
-unusual circumstances, it is better not to set this, and let the \TEX\
-primitives retain the meaning they have always had.)
+The second, related, environment variable is \type{FORCE_SOURCE_DATE}.
+If this is set to~\type{1}, \TEX's time-related primitives are also
+initialized from the value of \type{SOURCE_DATE_EPOCH}. These
+primitives are \type{\year}, \type{\month}, \type{\day}, and
+\type{\time}. If \type{SOURCE_DATE_EPOCH} is not set, setting
+\type{FORCE_SOURCE_DATE} has no effect. If \type{FORCE_SOURCE_DATE} is
+unset, set to the empty string, or set to~\type{0}, the primitives
+reflect the current time as usual. Any other value elicits a warning,
+and the current time is used. (This is useful only if one wants to make
+reproducible \PDF{}s for a set of documents without changing them in any
+way, e.g., an operating system distribution with manuals that use
+\type{\today}. Except in such unusual circumstances, it is better not
+to set this, and let the \TEX\ primitives retain the meaning they have
+always had.)
Finally, just to have the list of options and basic invocation at hand,
here is a verbatim listing of the \type{-}\type{-help} output. All
Modified: branches/stable/source/src/texk/web2c/lib/ChangeLog
===================================================================
--- branches/stable/source/src/texk/web2c/lib/ChangeLog 2016-06-03 15:32:51 UTC (rev 757)
+++ branches/stable/source/src/texk/web2c/lib/ChangeLog 2016-06-12 16:54:10 UTC (rev 758)
@@ -1,6 +1,13 @@
+2016-06-12 Karl Berry <karl at freefriends.org>
+
+ * texmfmp.c (get_date_and_time):
+ rename envvar SOURCE_DATE_EPOCH_TEX_PRIMITIVES to FORCE_SOURCE_DATE.
+ http://tug.org/pipermail/tex-k/2016-June/002722.html
+ (and surrounding thread, starting in May)
+
2016-05-06 Akira Kakuto <kakuto at fuk.kinidai.ac.jp>
- * texmfmp.c: Avoid to crash for too large a value of SOURCE_DATE_EPOCH.
+ * texmfmp.c: Avoid crash for too large a value of SOURCE_DATE_EPOCH.
(w32 only).
2016-05-06 Karl Berry <karl at tug.org>
Modified: branches/stable/source/src/texk/web2c/lib/texmfmp.c
===================================================================
--- branches/stable/source/src/texk/web2c/lib/texmfmp.c 2016-06-03 15:32:51 UTC (rev 757)
+++ branches/stable/source/src/texk/web2c/lib/texmfmp.c 2016-06-12 16:54:10 UTC (rev 758)
@@ -2247,7 +2247,7 @@
{
struct tm *tmptr;
#ifndef onlyTeX
- string sde_texprim = getenv ("SOURCE_DATE_EPOCH_TEX_PRIMITIVES");
+ string sde_texprim = getenv ("FORCE_SOURCE_DATE");
if (sde_texprim && STREQ (sde_texprim, "1")) {
init_start_time ();
tmptr = gmtime (&start_time);
@@ -2263,7 +2263,7 @@
/* warn if they gave an invalid value, empty (null string) ok. */
if (sde_texprim && strlen (sde_texprim) > 0
&& !STREQ (sde_texprim, "0")) {
-WARNING1 ("invalid value (expected 0 or 1) for environment variable $SOURCE_DATE_EPOCH_TEX_PRIMITIVES: %s",
+WARNING1 ("invalid value (expected 0 or 1) for environment variable $FORCE_SOURCE_DATE: %s",
sde_texprim);
}
#endif /* not onlyTeX */
Modified: branches/stable/source/src/texk/web2c/pdftexdir/NEWS
===================================================================
--- branches/stable/source/src/texk/web2c/pdftexdir/NEWS 2016-06-03 15:32:51 UTC (rev 757)
+++ branches/stable/source/src/texk/web2c/pdftexdir/NEWS 2016-06-12 16:54:10 UTC (rev 758)
@@ -1,3 +1,7 @@
+- changes:
+ - rename envvar SOURCE_DATE_EPOCH_TEX_PRIMITIVES to FORCE_SOURCE_DATE;
+ no changes in functionality.
+---------------------------------------------------
pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016)
- changes:
- if the environment variable SOURCE_DATE_EPOCH is set, use its value for
Modified: branches/stable/tests/03-deterministic-output/Makefile
===================================================================
--- branches/stable/tests/03-deterministic-output/Makefile 2016-06-03 15:32:51 UTC (rev 757)
+++ branches/stable/tests/03-deterministic-output/Makefile 2016-06-12 16:54:10 UTC (rev 758)
@@ -10,7 +10,7 @@
$(prog) test-fixed-date-id.tex
testprim:
- SOURCE_DATE_EPOCH=120 SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1 \
+ SOURCE_DATE_EPOCH=120 FORCE_SOURCE_DATE=1 \
$(prog) test-prim.tex
test = test-SOURCE_DATE_EPOCH
More information about the pdftex-commits
mailing list