inprove USER_PROLOG handling
This commit is contained in:
parent
13f22e1f8e
commit
1d976e54f2
|
@ -40,10 +40,6 @@ 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
|
||||
|
@ -57,7 +53,7 @@ echo "#define BUILDINFO_MODULES \""$MODULES"\"" >> $TEMPFILE
|
|||
|
||||
cat >> $TEMPFILE << EndOfMessage2
|
||||
#define NODE_VERSION_LONG \\
|
||||
"$USER_PROLOG_LINE" \\
|
||||
"$USER_PROLOG \n" \\
|
||||
"\tbranch: " BUILDINFO_BRANCH "\n" \\
|
||||
"\tcommit: " BUILDINFO_COMMIT_ID "\n" \\
|
||||
"\trelease: " BUILDINFO_RELEASE "\n" \\
|
||||
|
|
Loading…
Reference in New Issue