2019-03-23 17:50:50 +00:00
|
|
|
# Creates an amalgamated janet.c
|
2019-01-24 05:15:58 +00:00
|
|
|
|
2019-03-23 17:50:50 +00:00
|
|
|
# Head
|
2019-01-24 05:15:58 +00:00
|
|
|
(print "/* Amalgamated build - DO NOT EDIT */")
|
2019-07-09 10:49:37 +00:00
|
|
|
(print "/* Generated from janet version " janet/version "-" janet/build " */")
|
2019-01-24 05:26:57 +00:00
|
|
|
(print "#define JANET_BUILD \"" janet/build "\"")
|
2019-02-01 03:38:59 +00:00
|
|
|
(print ```#define JANET_AMALG```)
|
2019-12-31 03:08:12 +00:00
|
|
|
(print ```#define _POSIX_C_SOURCE 200112L```)
|
2019-02-01 03:38:59 +00:00
|
|
|
(print ```#include "janet.h"```)
|
2019-01-24 05:15:58 +00:00
|
|
|
|
2019-03-23 17:50:50 +00:00
|
|
|
# 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")
|
2019-03-23 17:50:50 +00:00
|
|
|
(print (slurp path)))
|
2019-10-19 23:00:29 +00:00
|
|
|
|
|
|
|
# maybe will help
|
|
|
|
(:flush stdout)
|