diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2021-01-16 02:17:24 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2021-01-16 02:42:52 +0100 |
commit | a17a9dcc4d5f3d8f27769d334462c54d6b457230 (patch) | |
tree | 88beb5096a58ef820eab1b4bb2e04b21177978f9 /mix.exs | |
parent | 99c2e8ed5c797078188911d05b693388a88ade3d (diff) | |
download | pleroma-a17a9dcc4d5f3d8f27769d334462c54d6b457230.tar.gz |
mix.exs: Put template into one variable with ~s[]
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 <https://pleroma.social/> +# SPDX-License-Identifier: AGPL-3.0-only - line2 = "# Copyright © 2017-#{year} Pleroma Authors <https://pleroma.social/>\\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' {} \\; |" |