From d054d17694f09fe5710cf0adb6f434117c808dd4 Mon Sep 17 00:00:00 2001 From: Gregor Hartmann Date: Sat, 27 Jul 2019 13:09:11 +0200 Subject: [PATCH] adapt sed calls for macOS --- tools/update_buildinfo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/update_buildinfo.sh b/tools/update_buildinfo.sh index 9113ec57..99a376f9 100755 --- a/tools/update_buildinfo.sh +++ b/tools/update_buildinfo.sh @@ -3,8 +3,8 @@ USER_MODULES_H=app/include/user_modules.h COMMIT_ID="$(git rev-parse HEAD)" -BRANCH="$(git rev-parse --abbrev-ref HEAD | sed -r 's/[\/\\]+/_/g')" -RELEASE="$(git describe --tags --long | sed -r 's/(.*)-(.*)-.*/\1 +\2/g' | sed 's/ +0$//')" +BRANCH="$(git rev-parse --abbrev-ref HEAD | sed -E 's/[\/\\]+/_/g')" +RELEASE="$(git describe --tags --long | sed -E 's/(.*)-(.*)-.*/\1 +\2/g' | sed 's/ +0$//')" RELEASE_DTS=$(TZ=UTC git show --quiet --date=format-local:"%Y%m%d%H%M" --format="%cd" HEAD) MODULES=$(awk '/^[ \t]*#define LUA_USE_MODULES/{modules=modules sep tolower(substr($2,17));sep=","}END{if(length(modules)==0)modules="-";print modules}' $USER_MODULES_H | tr -d '\r')