mirror of
https://github.com/dlang/tools.git
synced 2025-04-26 13:10:36 +03:00
Merge pull request #221 from wilzbach/emit-nightly-header
Changed.d: emit nightly header merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
This commit is contained in:
commit
1ef06894a6
1 changed files with 8 additions and 1 deletions
|
@ -339,6 +339,7 @@ int main(string[] args)
|
|||
{
|
||||
auto outputFile = "./changelog.dd";
|
||||
auto nextVersionString = "LATEST";
|
||||
bool useNightlyTemplate;
|
||||
|
||||
auto currDate = Clock.currTime();
|
||||
auto nextVersionDate = "%s %02d, %04d"
|
||||
|
@ -354,6 +355,7 @@ int main(string[] args)
|
|||
"output|o", &outputFile,
|
||||
"date", &nextVersionDate,
|
||||
"version", &nextVersionString,
|
||||
"nightly", &useNightlyTemplate,
|
||||
"prev-version", &previousVersion, // this can automatically be detected
|
||||
"no-text", &hideTextChanges);
|
||||
|
||||
|
@ -384,7 +386,12 @@ Please supply a bugzilla version
|
|||
w.formattedWrite("$(CHANGELOG_NAV_LAST %s)\n\n", previousVersion);
|
||||
|
||||
{
|
||||
w.formattedWrite("$(VERSION %s, =================================================,\n\n", nextVersionDate);
|
||||
// NITGHLY_VERSION is a special ddoc macro with e.g. different download links
|
||||
if (useNightlyTemplate)
|
||||
w.formattedWrite("$(NIGHTLY_VERSION %s,\n,\n,", nextVersionDate);
|
||||
else
|
||||
w.formattedWrite("$(VERSION %s, =================================================,\n\n", nextVersionDate);
|
||||
|
||||
scope(exit) w.put(")\n");
|
||||
|
||||
if (!hideTextChanges)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue