1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 09:47:17 +00:00
janet/tools/amalg.janet
Barakat 95dbad6ec1
Remove amalg.janet dependency on os/date
When compiling Janet with `JANET_REDUCED_OS`, `os/date` will not be available which breaks the tool amalg.janet. One can check file modification time on the filesystem instead.
2019-07-09 13:49:37 +03:00

13 lines
357 B
Clojure

# Creates an amalgamated janet.c
# Head
(print "/* Amalgamated build - DO NOT EDIT */")
(print "/* Generated from janet version " janet/version "-" janet/build " */")
(print "#define JANET_BUILD \"" janet/build "\"")
(print ```#define JANET_AMALG```)
(print ```#include "janet.h"```)
# Body
(each path (tuple/slice process/args 2)
(print (slurp path)))