From 6d9d6786af7edf8295ca4fab8959c3ff4a6e6ab3 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 2 Apr 2021 15:46:32 +0200 Subject: [PATCH] Makefile: make sed invocations portable to macOS Signed-off-by: Elias Naur --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b19b35c..01411fb 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,8 @@ VERSIONCODE_PLUSONE=$(shell expr $(VERSIONCODE) + 1) all: $(APK) tag_release: - sed -i 's/versionCode [[:digit:]]\+/versionCode $(VERSIONCODE_PLUSONE)/' android/build.gradle - sed -i 's/versionName .*/versionName "$(VERSION_LONG)"/' android/build.gradle + sed -i'.bak' 's/versionCode [[:digit:]]\+/versionCode $(VERSIONCODE_PLUSONE)/' android/build.gradle + sed -i'.bak' 's/versionName .*/versionName "$(VERSION_LONG)"/' android/build.gradle git commit -sm "android: bump version code" android/build.gradle git tag -a "v$(VERSION_LONG)"