1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-04 15:56:17 +00:00
janet/tools/amalg.janet
Calvin Rose 2c9195b507 More updates to meson
Redo amalg script so we can more easily run
it from Meson.
2019-03-23 13:50:50 -04:00

15 lines
448 B
Clojure

# Creates an amalgamated janet.c
# Head
(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 " */")
(print "#define JANET_BUILD \"" janet/build "\"")
(print ```#define JANET_AMALG```)
(print ```#include "janet.h"```)
# Body
(each path (tuple/slice process/args 2)
(print (slurp path)))