From e2bac118c5cc8aa9d8b63e91ed3ab5f3eb18e662 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 8 Jun 2016 14:05:08 +0300 Subject: [PATCH] Build scripts work both in Linux and OS X now. --- Telegram/build/makefile_static.sh | 2 +- Telegram/build/set_version.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/build/makefile_static.sh b/Telegram/build/makefile_static.sh index 7470b237d4..64a6a50c75 100755 --- a/Telegram/build/makefile_static.sh +++ b/Telegram/build/makefile_static.sh @@ -41,7 +41,7 @@ Replace () { CheckCount=$(eval $CheckCommand) if [ "$CheckCount" -gt 0 ]; then echo "Requested '$1' to '$2', found - replacing.." - ReplaceCommand="sed -i '' 's/$1/$2/g' Makefile" + ReplaceCommand="sed -i'.~' 's/$1/$2/g' Makefile" eval $ReplaceCommand else echo "Skipping '$1' to '$2'" diff --git a/Telegram/build/set_version.sh b/Telegram/build/set_version.sh index dd211c1391..3cb3c49bec 100755 --- a/Telegram/build/set_version.sh +++ b/Telegram/build/set_version.sh @@ -82,7 +82,7 @@ repl () { CheckCount=`eval $CheckCommand` set -e if [ "$CheckCount" -gt 0 ]; then - ReplaceCommand="sed -i '' 's/$Pattern/$Replacement/g' $File" + ReplaceCommand="sed -i'.~' 's/$Pattern/$Replacement/g' $File" eval $ReplaceCommand else echo "Not found $Pattern"