Skip to content
Snippets Groups Projects
Commit 7e3b23fe authored by Aki Tuomi's avatar Aki Tuomi
Browse files

configure: Fix asset URL generation

parent 235bd272
No related branches found
No related tags found
No related merge requests found
......@@ -15,9 +15,6 @@ AC_CONFIG_SRCDIR([src])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
PIGEONHOLE_ASSET_VERSION=regexp(AC_PACKAGE_VERSION, [^\([0-9]+\)\.\([0-9]+\)], [\1.\2])
AC_SUBST(PIGEONHOLE_ASSET_VERSION)
# Autoheader is not needed and does more harm than good for this package. However, it is
# tightly integrated in autoconf/automake and therefore it is difficult not to use it. As
# a workaround we give autoheader a dummy config header to chew on and we handle the
......@@ -52,6 +49,17 @@ AC_SUBST(BINARY_CFLAGS)
AC_SUBST(BINARY_LDFLAGS)
AC_SUBST(LIBDOVECOT_INCLUDE)
AC_SUBST(PIGEONHOLE_ASSET_VERSION, regexp(AC_PACKAGE_VERSION, [^\([0-9]+\)\.\([0-9]+\).\([0-9]+\)], [\1.\2.\3]))
AS_IF([test $PIGEONHOLE_ASSET_VERSION = "0.0.0"], [
AC_SUBST([PIGEONHOLE_ASSET_VERSION], "main")
])
AS_IF([test $DOVECOT_PRO_BUILD = "1"], [
AC_SUBST(PIGEONHOLE_ASSET_URL, "doc.dovecotpro.com")
], [
AC_SUBST(PIGEONHOLE_ASSET_URL, "doc.dovecot.org")
])
# Define Sieve documentation install dir
#
......
......@@ -14,7 +14,7 @@ endif
BUILT_SOURCES = pigeonhole-man
MAN_URL=https://doc.dovecot.org/assets/$(PIGEONHOLE_ASSET_VERSION)/pigeonhole.txz
MAN_URL=https://$(PIGEONHOLE_ASSET_URL)/$(PIGEONHOLE_ASSET_VERSION)/pigeonhole.txz
AM_V_Q = $(am__v_Q_$(V))
am__v_Q_ = $(am__v_Q_$(AM_DEFAULT_VERBOSITY))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.