Fix small issues and add execute bit for unix

This commit is contained in:
Gregor 2019-07-12 21:36:44 +02:00
parent ad90e8dd51
commit bc4b177086
1 changed files with 18 additions and 18 deletions

View File

@ -11,18 +11,18 @@ RELEASE_DTS=0$(git show -s --format=%cd --date=format:"%Y%m%d%H%M" HEAD)
# figure out whether SSL is enabled in user_config.h # figure out whether SSL is enabled in user_config.h
if grep -Eq "^#define CLIENT_SSL_ENABLE" $USER_CONFIG_H; then if grep -Eq "^#define CLIENT_SSL_ENABLE" $USER_CONFIG_H; then
SSL="true" SSL="true"
else else
SSL="false" SSL="false"
fi fi
# figure out whether LFS configuration in user_config.h # figure out whether LFS configuration in user_config.h
LFS=$(grep "^#define LUA_FLASH_STORE" $USER_CONFIG_H | tr -d '\r' | cut -d ' ' -f 3-) LFS=$(grep "^#define LUA_FLASH_STORE" $USER_CONFIG_H | tr -d '\r' | cut -d ' ' -f 3-)
if [ -z "$LFS" ]; then if [ -z "$LFS" ]; then
LFS="disabled" LFS="disabled"
else else
LFS="Size: ${LFS}" LFS="Size: ${LFS}"
fi fi
# figure out whether Int build is enabled in user_config.h # figure out whether Int build is enabled in user_config.h
if grep -Eq "^#define LUA_NUMBER_INTEGRAL" $USER_CONFIG_H; then if grep -Eq "^#define LUA_NUMBER_INTEGRAL" $USER_CONFIG_H; then
@ -58,15 +58,15 @@ echo "#define BUILDINFO_MODULES \""$MODULES"\"" >> $TEMPFILE
cat >> $TEMPFILE << EndOfMessage2 cat >> $TEMPFILE << EndOfMessage2
#define NODE_VERSION_LONG \\ #define NODE_VERSION_LONG \\
"$USER_PROLOG_LINE" \\ "$USER_PROLOG_LINE" \\
"\tbranch: " BUILDINFO_BRANCH "\n" \\ "\tbranch: " BUILDINFO_BRANCH "\n" \\
"\tcommit: " BUILDINFO_COMMIT_ID "\n" \\ "\tcommit: " BUILDINFO_COMMIT_ID "\n" \\
"\trelease: " BUILDINFO_RELEASE "\n" \\ "\trelease: " BUILDINFO_RELEASE "\n" \\
"\trelease DTS: " BUILDINFO_RELEASE_DTS_STR "\n" \\ "\trelease DTS: " BUILDINFO_RELEASE_DTS_STR "\n" \\
"\tSSL: " BUILDINFO_SSL_STR "\n" \\ "\tSSL: " BUILDINFO_SSL_STR "\n" \\
"\tBuild type: " BUILDINFO_BUILD_TYPE "\n" \\ "\tBuild type: " BUILDINFO_BUILD_TYPE "\n" \\
"\tLFS: " BUILDINFO_LFS "\n" \\ "\tLFS: " BUILDINFO_LFS "\n" \\
"\tmodules: " BUILDINFO_MODULES "\n" "\tmodules: " BUILDINFO_MODULES "\n"
EndOfMessage2 EndOfMessage2