mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 16:06:14 +00:00
simplify help command in makefile (#433)
force curl timeout (useful for firewalled environments) Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
parent
404c353ae4
commit
62e175b3ff
4
Makefile
4
Makefile
@ -41,8 +41,8 @@ COMPONENT = $(shell echo $(component) | tr a-z A-Z)
|
|||||||
default: help
|
default: help
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help:
|
help: ## Show this help
|
||||||
@eval $$(sed -r -n 's/^([a-zA-Z0-9_-]+):.*?## (.*)$$/printf "\\033[36m%-30s\\033[0m %s\\n" "\1" "\2" ;/; ta; b; :a p' $(MAKEFILE_LIST) | sort)
|
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
||||||
.PHONY: build-all
|
.PHONY: build-all
|
||||||
all: build-all
|
all: build-all
|
||||||
|
@ -41,7 +41,7 @@ case $component in
|
|||||||
core)
|
core)
|
||||||
KOPANO_CORE_REPOSITORY_URL=${KOPANO_CORE_REPOSITORY_URL:-""}
|
KOPANO_CORE_REPOSITORY_URL=${KOPANO_CORE_REPOSITORY_URL:-""}
|
||||||
if [[ $KOPANO_CORE_REPOSITORY_URL == http* ]]; then
|
if [[ $KOPANO_CORE_REPOSITORY_URL == http* ]]; then
|
||||||
version=$(curl -s -S -L "$KOPANO_CORE_REPOSITORY_URL"/Packages | grep -A2 "Package: kopano-server-packages")
|
version=$(curl -m 1 -s -S -L "$KOPANO_CORE_REPOSITORY_URL"/Packages | grep -A2 "Package: kopano-server-packages")
|
||||||
echo "${version##* }"
|
echo "${version##* }"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@ -49,7 +49,7 @@ core)
|
|||||||
webapp)
|
webapp)
|
||||||
KOPANO_WEBAPP_REPOSITORY_URL=${KOPANO_WEBAPP_REPOSITORY_URL:-""}
|
KOPANO_WEBAPP_REPOSITORY_URL=${KOPANO_WEBAPP_REPOSITORY_URL:-""}
|
||||||
if [[ $KOPANO_WEBAPP_REPOSITORY_URL == http* ]]; then
|
if [[ $KOPANO_WEBAPP_REPOSITORY_URL == http* ]]; then
|
||||||
version=$(curl -s -S -L "$KOPANO_WEBAPP_REPOSITORY_URL"/Packages | grep -m1 -A1 "Package: kopano-webapp")
|
version=$(curl -m 1 -s -S -L "$KOPANO_WEBAPP_REPOSITORY_URL"/Packages | grep -m1 -A1 "Package: kopano-webapp")
|
||||||
echo "${version##* }"
|
echo "${version##* }"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@ -57,7 +57,7 @@ webapp)
|
|||||||
zpush)
|
zpush)
|
||||||
KOPANO_ZPUSH_REPOSITORY_URL=${KOPANO_ZPUSH_REPOSITORY_URL:-"http://repo.z-hub.io/z-push:/final/Debian_9.0/"}
|
KOPANO_ZPUSH_REPOSITORY_URL=${KOPANO_ZPUSH_REPOSITORY_URL:-"http://repo.z-hub.io/z-push:/final/Debian_9.0/"}
|
||||||
if [[ $KOPANO_ZPUSH_REPOSITORY_URL == http* ]]; then
|
if [[ $KOPANO_ZPUSH_REPOSITORY_URL == http* ]]; then
|
||||||
version=$(curl -s -S -L "$KOPANO_ZPUSH_REPOSITORY_URL"/Packages | grep -m2 -A2 "Package: z-push-kopano")
|
version=$(curl -m 1 -s -S -L "$KOPANO_ZPUSH_REPOSITORY_URL"/Packages | grep -m2 -A2 "Package: z-push-kopano")
|
||||||
echo "${version##* }"
|
echo "${version##* }"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
@ -65,7 +65,7 @@ zpush)
|
|||||||
meet)
|
meet)
|
||||||
KOPANO_MEET_REPOSITORY_URL=${KOPANO_MEET_REPOSITORY_URL:-""}
|
KOPANO_MEET_REPOSITORY_URL=${KOPANO_MEET_REPOSITORY_URL:-""}
|
||||||
if [[ $KOPANO_MEET_REPOSITORY_URL == http* ]]; then
|
if [[ $KOPANO_MEET_REPOSITORY_URL == http* ]]; then
|
||||||
version=$(curl -s -S -L "$KOPANO_MEET_REPOSITORY_URL"/Packages | grep -A2 "Package: kopano-meet-packages")
|
version=$(curl -m 1 -s -S -L "$KOPANO_MEET_REPOSITORY_URL"/Packages | grep -A2 "Package: kopano-meet-packages")
|
||||||
echo "${version##* }"
|
echo "${version##* }"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user