diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | README.md | 15 | ||||
-rw-r--r-- | mix.exs | 3 | ||||
-rw-r--r-- | mix.lock | 2 | ||||
-rw-r--r-- | src/apprentice.c | 3 |
5 files changed, 17 insertions, 7 deletions
@@ -38,4 +38,3 @@ $(TARGET_MAGIC): $(SOURCE_MAGIC) clean: rm -f $(EXECUTABLE) $(OBJECT_FILES) $(BEAM_FILES) - rm -f $(TEST_DIRECTORY)/*mgc @@ -6,8 +6,7 @@ Determine file type. Elixir bindings for [libmagic](http://man7.org/linux/man-pa ## Installation -If [available in Hex](https://hex.pm/docs/publish), the package can be installed -by adding `gen_magic` to your list of dependencies in `mix.exs`: +The package can be installed by adding `gen_magic` to your list of dependencies in `mix.exs`: ```elixir def deps do @@ -19,7 +18,7 @@ end ## Usage -The libmagic library requires a magic file which can be installed in various locations on your file system. A good way of locating it is given in the [config](config/config.exs): +The libmagic library requires a magic file which can be installed in various locations on your file system. A good way of locating it is given in the [default config](config/config.exs): ```elixir database = [ @@ -76,4 +75,12 @@ Run an endless cycle to prove that the GenServer is resilient: ```bash find /usr/share/ -name *png | xargs mix run test/soak.exs find . -name *ex | xargs mix run test/soak.exs -```
\ No newline at end of file +``` + +## Acknowledgements + +Original design, implementation and C code by [Evadne Wu](https://github.com/evadne). Elixir wrapper by [devstopfix](https://github.com/devstopfix/gen_magic). + +## License + +TBC. @@ -8,7 +8,8 @@ defmodule GenMagic.MixProject do elixir: "~> 1.7", start_permanent: Mix.env() == :prod, compilers: [:elixir_make] ++ Mix.compilers(), - deps: deps() + deps: deps(), + source_url: "https://github.com/devstopfix/gen_magic" ] end @@ -1,6 +1,6 @@ %{ "bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm", "7af5c7e09fe1d40f76c8e4f9dd2be7cebd83909f31fee7cd0e9eadc567da8353"}, - "credo": {:hex, :credo, "1.3.1", "082e8d9268a489becf8e7aa75671a7b9088b1277cd6c1b13f40a55554b3f5126", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "0da816ed52fa520b9ea0e5d18a0d3ca269e0bd410b1174d88d8abd94be6cce3c"}, + "credo": {:hex, :credo, "1.3.2", "08d456dcf3c24da162d02953fb07267e444469d8dad3a2ae47794938ea467b3a", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "b11d28cce1f1f399dddffd42d8e21dcad783309e230f84b70267b1a5546468b6"}, "dialyxir": {:hex, :dialyxir, "1.0.0", "6a1fa629f7881a9f5aaf3a78f094b2a51a0357c843871b8bc98824e7342d00a5", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "aeb06588145fac14ca08d8061a142d52753dbc2cf7f0d00fc1013f53f8654654"}, "elixir_make": {:hex, :elixir_make, "0.6.0", "38349f3e29aff4864352084fc736fa7fa0f2995a819a737554f7ebd28b85aaab", [:mix], [], "hexpm", "d522695b93b7f0b4c0fcb2dfe73a6b905b1c301226a5a55cb42e5b14d509e050"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, diff --git a/src/apprentice.c b/src/apprentice.c index 1780f1e..5b557e0 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -1,3 +1,6 @@ +// +// (c) Evadne Wu, Faria Education Group / International Baccalaureate 2019 +// #include <errno.h> #include <getopt.h> #include <libgen.h> |