Hash :
eec6d95c
Author :
Thomas de Grivel
Date :
2023-06-13T13:48:47
## update_header
## Copyright 2022, 2023 kmx.io <contact@kmx.io>
defmodule Mix.Tasks.Licence do
use Mix.Task
def run(_) do
{ex_files, 0} = System.cmd("find", [".", "-name", "[a-z]*.ex",
"-or", "-name", "[a-z]*.exs"])
ex_files = ex_files |> String.split("\n") |> Enum.filter(& &1 != "")
UpdateHeader.update(["mix.exs" | ex_files])
end
end