2019-03-23 13:50:50 -04:00
|
|
|
# Creates an amalgamated janet.c
|
2019-01-24 00:15:58 -05:00
|
|
|
|
2019-03-23 13:50:50 -04:00
|
|
|
# Head
|
2019-01-24 00:15:58 -05: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 00:26:57 -05:00
|
|
|
(print "#define JANET_BUILD \"" janet/build "\"")
|
2019-01-31 22:38:59 -05:00
|
|
|
(print ```#define JANET_AMALG```)
|
|
|
|
(print ```#include "janet.h"```)
|
2019-01-24 00:15:58 -05:00
|
|
|
|
2019-03-23 13:50:50 -04:00
|
|
|
# Body
|
|
|
|
(each path (tuple/slice process/args 2)
|
|
|
|
(print (slurp path)))
|