Hash :
ff60fe16
Author :
Thomas de Grivel
Date :
2022-11-03T14:30:51
## update_header
## Copyright 2022 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