Skip to content

Commit ef33dbb

Browse files
authored
Adjust release scripts for MacOS usage (#1323)
1 parent b0dba20 commit ef33dbb

File tree

5 files changed

+9
-25
lines changed

5 files changed

+9
-25
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ ROOT:=$(CURRENT)
44
SED ?= sed
55
REALPATH ?= realpath
66

7+
ifeq ($(shell uname),Darwin)
8+
SED ?= gsed
9+
REALPATH ?= grealpath
10+
endif
11+
712
PROJECT := arangodb_operator
813
SCRIPTDIR := $(shell pwd)
914
ROOTDIR := $(shell cd $(SCRIPTDIR) && pwd)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ArangoDB Kubernetes Operator helps to run ArangoDB deployments
66
on Kubernetes clusters.
77

88
To get started, follow the Installation instructions below and/or
9-
read the [tutorial](https://www.arangodb.com/docs/stable/tutorials-kubernetes.html).
9+
read the [tutorial](https://www.arangodb.com/docs/stable/deployment-kubernetes-usage.html).
1010

1111
## State
1212

scripts/patch_chart.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ fi
1414
function replaceInFile {
1515
local EXPR=$1
1616
local FILE=$2
17-
case $(uname) in
18-
Darwin)
19-
sed -e "${EXPR}" -i "" ${FILE}
20-
;;
21-
*)
22-
sed -i --expression "${EXPR}" ${FILE}
23-
;;
24-
esac
17+
sed -i --expression "${EXPR}" ${FILE}
2518
}
2619

2720
for f in kube-arangodb kube-arangodb-crd; do

scripts/patch_examples.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@ ARANGODB_VERSION=3.7.10
1414
function replaceInFile {
1515
local EXPR=$1
1616
local FILE=$2
17-
case $(uname) in
18-
Darwin)
19-
sed -E -e "${EXPR}" -i "" ${FILE}
20-
;;
21-
*)
22-
sed -E -i --expression "${EXPR}" ${FILE}
23-
;;
24-
esac
17+
sed -E -i --expression "${EXPR}" ${FILE}
2518
}
2619

2720
FILES=$(find ./examples -type f -name '*.yaml')

scripts/patch_readme.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ fi
1313
function replaceInFile {
1414
local EXPR=$1
1515
local FILE=$2
16-
case $(uname) in
17-
Darwin)
18-
sed -e "${EXPR}" -i "" ${FILE}
19-
;;
20-
*)
21-
sed -E -i --expression "${EXPR}" ${FILE}
22-
;;
23-
esac
16+
sed -E -i --expression "${EXPR}" ${FILE}
2417
}
2518

2619

0 commit comments

Comments
 (0)