1
0
mirror of https://github.com/janet-lang/janet synced 2025-02-08 21:10:02 +00:00
janet/tools/amalg.janet

13 lines
357 B
Clojure
Raw Normal View History

# Creates an amalgamated janet.c
# Head
(print "/* Amalgamated build - DO NOT EDIT */")
(print "/* Generated from janet version " janet/version "-" janet/build " */")
2019-01-24 00:26:57 -05:00
(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)))