From 00301ad26b2ce0f5c809159ceb07a479455389ae Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Thu, 24 Jan 2019 00:26:57 -0500 Subject: [PATCH] Add build number to amalg build. --- Makefile | 2 +- ctest/system_test.c | 2 +- tools/amalg.janet | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 287e2b2c..f13aeee1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Copyright (c) 2018 Calvin Rose +# Copyright (c) 2019 Calvin Rose # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to diff --git a/ctest/system_test.c b/ctest/system_test.c index 337cc1e2..3413c27e 100644 --- a/ctest/system_test.c +++ b/ctest/system_test.c @@ -1,5 +1,5 @@ /* -* Copyright (c) 2018 Calvin Rose +* Copyright (c) 2019 Calvin Rose * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to diff --git a/tools/amalg.janet b/tools/amalg.janet index 8d3eb16a..4a3abe14 100644 --- a/tools/amalg.janet +++ b/tools/amalg.janet @@ -55,6 +55,11 @@ (print "/* Amalgamated build - DO NOT EDIT */") (print "/* Generated " YY "-" (inc MM) "-" (inc DD) " with janet version " janet/version "-" janet/build " */") + +# Assume the version of janet used to run this script is the same +# as the version being generated +(print "#define JANET_BUILD \"" janet/build "\"") + (print ```#define JANET_AMALG #include "janet.h"```)