mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Adjust release scripts for MacOS usage (#1323)
This commit is contained in:
parent
b0dba20357
commit
ef33dbb835
5 changed files with 9 additions and 25 deletions
5
Makefile
5
Makefile
|
@ -4,6 +4,11 @@ ROOT:=$(CURRENT)
|
|||
SED ?= sed
|
||||
REALPATH ?= realpath
|
||||
|
||||
ifeq ($(shell uname),Darwin)
|
||||
SED ?= gsed
|
||||
REALPATH ?= grealpath
|
||||
endif
|
||||
|
||||
PROJECT := arangodb_operator
|
||||
SCRIPTDIR := $(shell pwd)
|
||||
ROOTDIR := $(shell cd $(SCRIPTDIR) && pwd)
|
||||
|
|
|
@ -6,7 +6,7 @@ ArangoDB Kubernetes Operator helps to run ArangoDB deployments
|
|||
on Kubernetes clusters.
|
||||
|
||||
To get started, follow the Installation instructions below and/or
|
||||
read the [tutorial](https://www.arangodb.com/docs/stable/tutorials-kubernetes.html).
|
||||
read the [tutorial](https://www.arangodb.com/docs/stable/deployment-kubernetes-usage.html).
|
||||
|
||||
## State
|
||||
|
||||
|
|
|
@ -14,14 +14,7 @@ fi
|
|||
function replaceInFile {
|
||||
local EXPR=$1
|
||||
local FILE=$2
|
||||
case $(uname) in
|
||||
Darwin)
|
||||
sed -e "${EXPR}" -i "" ${FILE}
|
||||
;;
|
||||
*)
|
||||
sed -i --expression "${EXPR}" ${FILE}
|
||||
;;
|
||||
esac
|
||||
sed -i --expression "${EXPR}" ${FILE}
|
||||
}
|
||||
|
||||
for f in kube-arangodb kube-arangodb-crd; do
|
||||
|
|
|
@ -14,14 +14,7 @@ ARANGODB_VERSION=3.7.10
|
|||
function replaceInFile {
|
||||
local EXPR=$1
|
||||
local FILE=$2
|
||||
case $(uname) in
|
||||
Darwin)
|
||||
sed -E -e "${EXPR}" -i "" ${FILE}
|
||||
;;
|
||||
*)
|
||||
sed -E -i --expression "${EXPR}" ${FILE}
|
||||
;;
|
||||
esac
|
||||
sed -E -i --expression "${EXPR}" ${FILE}
|
||||
}
|
||||
|
||||
FILES=$(find ./examples -type f -name '*.yaml')
|
||||
|
|
|
@ -13,14 +13,7 @@ fi
|
|||
function replaceInFile {
|
||||
local EXPR=$1
|
||||
local FILE=$2
|
||||
case $(uname) in
|
||||
Darwin)
|
||||
sed -e "${EXPR}" -i "" ${FILE}
|
||||
;;
|
||||
*)
|
||||
sed -E -i --expression "${EXPR}" ${FILE}
|
||||
;;
|
||||
esac
|
||||
sed -E -i --expression "${EXPR}" ${FILE}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue