1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-29 11:29:54 +00:00
janet/tools/amalg.janet

15 lines
448 B
Clojure
Raw Normal View History

# 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 " */")
2019-01-24 05:26:57 +00:00
(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)))