Skip to content

Commit 7f8b48e

Browse files
committed
Be aware of DIFFABLE -> use a static timestamp for DAutoTest
1 parent 202a3c6 commit 7f8b48e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

docs/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ include ../src/osmodel.mak
1313
BUILD=release
1414
G_BIN=$(GENERATED)/$(OS)/$(BUILD)/$(MODEL)
1515

16+
# Removes inclusion of all dynamic content and timestamps
17+
export DIFFABLE
18+
1619
################################################################################
1720
# Main targets
1821
################################################################################

docs/gen_man.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,14 @@ string bold(string w)
7979
void main()
8080
{
8181
import std.algorithm, std.array, std.conv, std.datetime, std.range, std.stdio, std.uni;
82+
import std.process : environment;
8283
import dmd.cli;
8384

8485
auto now = Clock.currTime;
86+
auto diffable = environment.get("DIFFABLE", "0");
87+
if (diffable == "1")
88+
now = SysTime(DateTime(2018, 01, 01));
89+
8590
writefln(header, now.toISOExtString.take(10));
8691

8792
foreach (option; Usage.options)

0 commit comments

Comments
 (0)