build: move script to generate version.i to its own file
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 25 May 2023 18:36:49 +0000 (14:36 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 31 Aug 2023 14:38:42 +0000 (10:38 -0400)
commit90eb03801a1098801d04988a2e4bf477c7bf5103
tree91fc01cba337c6461e102a7edb79379353d4cd5f
parent82c496894360d1e590821ea9d35b6f808d4e0fbd
build: move script to generate version.i to its own file

Move the script from src/common/Makefile.am to its own file.  This will
make it easier to read, modify and lint.

I inlined the big comment from Makefile.am in the new script.  I tried
to keep the code as-is as much as possible, but I needed to tweak a few
things.

 - Replace $(FOO) with $FOO
 - The script expects to get the top srcdir and the grep and sed
   binaries through the TOP_SRCDIR, GREP and SED env var.  GREP and SED
   are optional, to make it easier to run the script by hand

Change-Id: Iaa8948018785e0de4250285110b78ccea1abaedb
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10095
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
src/common/Makefile.am
src/common/gen-version-i.sh [new file with mode: 0755]
This page took 0.028955 seconds and 4 git commands to generate.