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
|
|
|
(def {:year YY :month MM :month-day DD} (os/date))
|
|
|
|
(print "/* Amalgamated build - DO NOT EDIT */")
|
|
|
|
(print "/* Generated " YY "-" (inc MM) "-" (inc DD)
|
|
|
|
" with 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```)
|
|
|
|
(print ```#include "janet.h"```)
|
2019-01-24 05:15:58 +00:00
|
|
|
|
2019-03-23 17:50:50 +00:00
|
|
|
# Body
|
|
|
|
(each path (tuple/slice process/args 2)
|
|
|
|
(print (slurp path)))
|