From e6c2f4cb5512bf9b69c1b820f3a3f5f59f4236e1 Mon Sep 17 00:00:00 2001 From: Gregor Date: Fri, 12 Jul 2019 19:23:02 +0200 Subject: [PATCH] Include environment variable USER_PROLOG in user config default --- tools/update_buildinfo.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/update_buildinfo.sh b/tools/update_buildinfo.sh index 993c0f7d..ba846d4b 100644 --- a/tools/update_buildinfo.sh +++ b/tools/update_buildinfo.sh @@ -40,6 +40,11 @@ cat > $TEMPFILE << EndOfMessage #define __BUILDINFO_H__ EndOfMessage +if [ -n "$USER_PROLOG" ]; then + USER_PROLOG_LINE="$USER_PROLOG"\\n +fi + +echo "#define USER_PROLOG \""$USER_PROLOG"\"" >> $TEMPFILE echo "#define BUILDINFO_BRANCH \""$BRANCH"\"" >> $TEMPFILE echo "#define BUILDINFO_COMMIT_ID \""$COMMIT_ID"\"" >> $TEMPFILE echo "#define BUILDINFO_RELEASE \""$RELEASE"\"" >> $TEMPFILE @@ -52,8 +57,8 @@ echo "#define BUILDINFO_LFS \""$LFS"\"" >> $TEMPFILE echo "#define BUILDINFO_MODULES \""$MODULES"\"" >> $TEMPFILE cat >> $TEMPFILE << EndOfMessage2 - #define NODE_VERSION_LONG \\ + "$USER_PROLOG_LINE" \\ "\tbranch: '" BUILDINFO_BRANCH "'\n" \\ "\tcommit: '" BUILDINFO_COMMIT_ID "'\n" \\ "\trelease: '" BUILDINFO_RELEASE "'\n" \\