Build scripts work both in Linux and OS X now.

This commit is contained in:
John Preston 2016-06-08 14:05:08 +03:00
parent a98e3b4a44
commit e2bac118c5
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ Replace () {
CheckCount=$(eval $CheckCommand) CheckCount=$(eval $CheckCommand)
if [ "$CheckCount" -gt 0 ]; then if [ "$CheckCount" -gt 0 ]; then
echo "Requested '$1' to '$2', found - replacing.." 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 eval $ReplaceCommand
else else
echo "Skipping '$1' to '$2'" echo "Skipping '$1' to '$2'"

View File

@ -82,7 +82,7 @@ repl () {
CheckCount=`eval $CheckCommand` CheckCount=`eval $CheckCommand`
set -e set -e
if [ "$CheckCount" -gt 0 ]; then if [ "$CheckCount" -gt 0 ]; then
ReplaceCommand="sed -i '' 's/$Pattern/$Replacement/g' $File" ReplaceCommand="sed -i'.~' 's/$Pattern/$Replacement/g' $File"
eval $ReplaceCommand eval $ReplaceCommand
else else
echo "Not found $Pattern" echo "Not found $Pattern"