From 835a18eb835e8c8ce56cb966cb661871927bd33e Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Wed, 9 Oct 2024 14:41:00 -0600 Subject: [PATCH] MacOS and Linux compatible command Signed-off-by: Florent Poinsard --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0874bf80..4c990981 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ generate: go run sigs.k8s.io/controller-tools/cmd/controller-gen object crd:maxDescLen=0 paths="./pkg/apis/planetscale/v2" output:crd:artifacts:config=./deploy/crds go run github.com/ahmetb/gen-crd-api-reference-docs -api-dir planetscale.dev/vitess-operator/pkg/apis/planetscale/v2 -config ./docs/api/config.json -template-dir ./docs/api/template -out-file ./docs/api/index.html @echo 'Copying ./docs/api/index.html to ./docs/api.md' - @cp ./docs/api/index.html ./docs/api.md && sed -i "" -e "1,2d" ./docs/api.md + @cp ./docs/api/index.html ./docs/api.md && ex -sc '1,2d|x' ./docs/api.md @echo 'Written to ./docs/api.md' generate-and-diff: generate