diff --git a/source/dub/commandline.d b/source/dub/commandline.d index a391089..35cf23d 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -24,6 +24,7 @@ import std.algorithm; import std.array; +import std.datetime: Clock; import std.conv; import std.encoding; import std.exception; @@ -495,7 +496,8 @@ p.description = input("Description", p.description); p.authors = input("Author name", author).split(",").map!(a => a.strip).array; p.license = input("License", p.license); - p.copyright = input("Copyright string", p.copyright); + string copyrightString = .format("Copyright © %s, %s", Clock.currTime().year, join(p.authors, ", ")); + p.copyright = input("Copyright string", copyrightString); while (true) { auto depname = input("Add dependency (leave empty to skip)", null); diff --git a/source/dub/init.d b/source/dub/init.d index 5c590fe..f06ea1e 100644 --- a/source/dub/init.d +++ b/source/dub/init.d @@ -13,7 +13,6 @@ import dub.recipe.packagerecipe; import dub.dependency; -import std.datetime; import std.exception; import std.file; import std.format; @@ -55,7 +54,6 @@ p.name = root_path.head.toString().toLower(); p.authors ~= username; p.license = "proprietary"; - p.copyright = .format("Copyright © %s, %s", Clock.currTime().year, username); foreach (pack, v; deps) { import std.ascii : isDigit; p.buildSettings.dependencies[pack] = Dependency(v);