mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Split out year
This commit is contained in:
parent
3607dfefca
commit
41a637c3a6
1 changed files with 2 additions and 2 deletions
4
mix.exs
4
mix.exs
|
@ -335,10 +335,10 @@ defmodule Pleroma.Mixfile do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp add_copyright(_) do
|
defp add_copyright(_) do
|
||||||
|
year = NaiveDateTime.utc_now().year
|
||||||
line1 = "# Pleroma: A lightweight social networking server\\n"
|
line1 = "# Pleroma: A lightweight social networking server\\n"
|
||||||
|
|
||||||
line2 =
|
line2 = "# Copyright © 2017-#{year} Pleroma Authors <https://pleroma.social/>\\n"
|
||||||
"# Copyright © 2017-#{NaiveDateTime.utc_now().year} Pleroma Authors <https://pleroma.social/>\\n"
|
|
||||||
|
|
||||||
line3 = "# SPDX-License-Identifier: AGPL-3.0-only\\n\\n"
|
line3 = "# SPDX-License-Identifier: AGPL-3.0-only\\n\\n"
|
||||||
template = line1 <> line2 <> line3
|
template = line1 <> line2 <> line3
|
||||||
|
|
Loading…
Reference in a new issue