From 4a6fcb5e2356649612b2a2021b951e56b3fca896 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 19 Jan 2019 12:11:54 -0500 Subject: [PATCH] Address issue #21 Add some github highlighting to janet files (clojure is pretty close) --- .gitattributes | 2 ++ tools/cook.janet | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..3759b29d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Use an approximate language for syntax highlighting (clojure is pretty close) +*.janet linguist-language=clojure diff --git a/tools/cook.janet b/tools/cook.janet index cc61088f..61653b4b 100644 --- a/tools/cook.janet +++ b/tools/cook.janet @@ -34,7 +34,7 @@ [f1 f2] "Check if f1 is newer than f2. Used for checking if a file should be updated." (if is-win true - (zero? (os/shell (string "[ " f1 " -ot " f2 " ]"))))) + (not (zero? (os/shell (string "[ " f1 " -nt " f2 " ]")))))) (defn- older-than-some [f others]