1
0
Fork 0
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:
jwierzbo 2023-06-05 14:18:04 +02:00 committed by GitHub
parent b0dba20357
commit ef33dbb835
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 25 deletions

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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')

View file

@ -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}
}