summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2021-01-15 17:25:43 -0600
committerMark Felder <feld@feld.me>2021-01-15 17:25:43 -0600
commit41a637c3a66cc68efddb84d3e888c6c21787c1c9 (patch)
tree914d4b767d4d93f619a6fa14fd1325fef1e71e9b /mix.exs
parent3607dfefcae4a941c05f9e350354226d1c5fa920 (diff)
Split out year
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mix.exs b/mix.exs
index 166cbdca5..1bfca0b47 100644
--- a/mix.exs
+++ b/mix.exs
@@ -335,10 +335,10 @@ defmodule Pleroma.Mixfile do
end
defp add_copyright(_) do
+ year = NaiveDateTime.utc_now().year
line1 = "# Pleroma: A lightweight social networking server\\n"
- line2 =
- "# Copyright © 2017-#{NaiveDateTime.utc_now().year} Pleroma Authors <https://pleroma.social/>\\n"
+ line2 = "# Copyright © 2017-#{year} Pleroma Authors <https://pleroma.social/>\\n"
line3 = "# SPDX-License-Identifier: AGPL-3.0-only\\n\\n"
template = line1 <> line2 <> line3