Commit 87eab82024508829046f9388266eeff5b116cc2b

Thomas de Grivel 2022-11-02T18:19:29

licence

diff --git a/lib/header/c.ex b/lib/header/c.ex
index 13a9909..75acab7 100644
--- a/lib/header/c.ex
+++ b/lib/header/c.ex
@@ -1,18 +1,3 @@
-/*
- * Copyright 2022 Thomas de Grivel <thoxdg@gmail.com>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
 defmodule Header.C do
   def split(src) do
     split(src, "")
diff --git a/lib/header/make.ex b/lib/header/make.ex
index 0b0a9be..074bc10 100644
--- a/lib/header/make.ex
+++ b/lib/header/make.ex
@@ -1,18 +1,3 @@
-/*
- * Copyright 2022 Thomas de Grivel <thoxdg@gmail.com>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
 ## cl89
 ## Copyright 2022 kmx.io <contact@kmx.io>
 ##
diff --git a/lib/mix/tasks/licence.ex b/lib/mix/tasks/licence.ex
index 741b765..875e02d 100644
--- a/lib/mix/tasks/licence.ex
+++ b/lib/mix/tasks/licence.ex
@@ -1,16 +1,3 @@
-## c3
-## Copyright 2022 kmx.io <contact@kmx.io>
-##
-## Permission is hereby granted to use this software granted
-## the above copyright notice and this permission paragraph
-## are included in all copies and substantial portions of this
-## software.
-##
-## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
-## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
-## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
-## THIS SOFTWARE.
-
 defmodule Mix.Tasks.Licence do
   use Mix.Task
 
@@ -37,6 +24,8 @@ defmodule Mix.Tasks.Licence do
                                        "-or", "-name", "[a-z]*.h"])
     {ex_files, 0} = System.cmd("find", ["lib", "-name", "[a-z]*.ex",
                                         "-or", "-name", "[a-z]*.exs"])
+    c_files = c_files |> String.split("\n") |> Enum.filter(& &1 != "")
+    ex_files = ex_files |> String.split("\n") |> Enum.filter(& &1 != "")
     update("c_src/git_nif.c", c_files)
     update("lib/kmxgit.ex", ex_files)
   end