From: Haelwenn (lanodan) Monnier Date: Sat, 16 Jan 2021 01:17:24 +0000 (+0100) Subject: mix.exs: Put template into one variable with ~s[] X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a17a9dcc4d5f3d8f27769d334462c54d6b457230;p=akkoma mix.exs: Put template into one variable with ~s[] --- diff --git a/mix.exs b/mix.exs index 5404a5c11..79d9783c4 100644 --- a/mix.exs +++ b/mix.exs @@ -337,12 +337,12 @@ defmodule Pleroma.Mixfile do defp add_copyright(_) do year = NaiveDateTime.utc_now().year - line1 = "# Pleroma: A lightweight social networking server\\n" + template = ~s[\ +# Pleroma: A lightweight social networking server +# Copyright © 2017-#{year} Pleroma Authors +# SPDX-License-Identifier: AGPL-3.0-only - line2 = "# Copyright © 2017-#{year} Pleroma Authors \\n" - - line3 = "# SPDX-License-Identifier: AGPL-3.0-only\\n\\n" - template = line1 <> line2 <> line3 +] |> String.replace("\n", "\\n") find = "find lib test priv -type f \\( -name '*.ex' -or -name '*.exs' \\) -exec " grep = "grep -L '# Copyright' {} \\; |"