From: Christos Zoulas Date: Wed, 16 Jan 2019 19:31:06 +0000 (+0000) Subject: clojure magic from Jason Felice X-Git-Tag: FILE5_36~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ede5802ba094771fade49be51e018b491c2aa6e;p=file clojure magic from Jason Felice --- diff --git a/magic/Magdir/clojure b/magic/Magdir/clojure new file mode 100644 index 00000000..fbdfe6b2 --- /dev/null +++ b/magic/Magdir/clojure @@ -0,0 +1,30 @@ +#------------------------------------------------------------------------------ +# file: file(1) magic for Clojure +# URL: https://clojure.org/ +# From: Jason Felice + +0 string/w #!\ /usr/bin/clj Clojure script text executable +!:mime text/x-clojure +0 string/w #!\ /usr/local/bin/clj Clojure script text executable +!:mime text/x-clojure +0 string/w #!\ /usr/bin/clojure Clojure script text executable +!:mime text/x-clojure +0 string/w #!\ /usr/local/bin/clojure Clojure script text executable +!:mime text/x-clojure +0 string/W #!/usr/bin/env\ clj Clojure script text executable +!:mime text/x-clojure +0 string/W #!/usr/bin/env\ clojure Clojure script text executable +!:mime text/x-clojure +0 string/W #!\ /usr/bin/env\ clj Clojure script text executable +!:mime text/x-clojure +0 string/W #!\ /usr/bin/env\ clojure Clojure script text executable +!:mime text/x-clojure + +0 regex \^\\\(ns[[:space:]]+[a-z] Clojure module source text +!:mime text/x-clojure + +0 regex \^\\\(ns[[:space:]]+\\\^{: Clojure module source text +!:mime text/x-clojure + +0 regex \^\\\(defn-?[[:space:]] Clojure module source text +!:mime text/x-clojure diff --git a/magic/Makefile.am b/magic/Makefile.am index 82a39f0e..fbc6c95e 100644 --- a/magic/Makefile.am +++ b/magic/Makefile.am @@ -1,5 +1,5 @@ # -# $File: Makefile.am,v 1.139 2018/11/20 18:57:17 christos Exp $ +# $File: Makefile.am,v 1.140 2019/01/16 19:31:06 christos Exp $ # MAGIC_FRAGMENT_BASE = Magdir MAGIC_DIR = $(top_srcdir)/magic @@ -58,6 +58,7 @@ $(MAGIC_FRAGMENT_DIR)/cisco \ $(MAGIC_FRAGMENT_DIR)/citrus \ $(MAGIC_FRAGMENT_DIR)/clarion \ $(MAGIC_FRAGMENT_DIR)/claris \ +$(MAGIC_FRAGMENT_DIR)/clojure \ $(MAGIC_FRAGMENT_DIR)/clipper \ $(MAGIC_FRAGMENT_DIR)/coff \ $(MAGIC_FRAGMENT_DIR)/commands \