mirror of
https://github.com/janet-lang/janet
synced 2024-12-12 01:30:33 +00:00
2c9195b507
Redo amalg script so we can more easily run it from Meson.
15 lines
448 B
Clojure
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)))
|