1
0
mirror of https://github.com/janet-lang/janet synced 2026-05-14 17:32:20 +00:00
Files
janet/tools/amalg.janet
T
2019-10-19 18:00:29 -05:00

16 lines
391 B
Janet

# 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 (dyn :args) 1)
(print (slurp path)))
# maybe will help
(:flush stdout)