1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-24 23:40:27 +00:00
janet/tools/amalg.janet

17 lines
422 B
Plaintext
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 05:26:57 +00:00
(print "#define JANET_BUILD \"" janet/build "\"")
(print ```#define JANET_AMALG```)
(print ```#include "janet.h"```)
# Body
2019-07-27 16:05:53 +00:00
(each path (tuple/slice (dyn :args) 1)
2019-10-29 23:47:54 +00:00
(print "\n/* " path " */\n")
(print (slurp path)))
2019-10-19 23:00:29 +00:00
# maybe will help
(:flush stdout)