You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2487,6 +2487,10 @@ NUT_ARG_WITH([docs], [build and install documentation (alias to --with-doc)], [m
2487
2487
NUT_ARG_WITH([doc], [build and install documentation (see docs/configure.txt for many variants of the option)], [${nut_with_docs}])
2488
2488
2489
2489
NUT_ARG_ENABLE([docs-man-for-progs-built-only], [build and install man pages (if enabled) only for built programs (yes, default) or all known pages (no)], [yes])
2490
+
NUT_ARG_ENABLE([docs-changelog], [(re-)generate ChangeLog* files - and do so whenever git info changes? (default: auto; yes, no, "adoc,html,pdf"...)], [auto])
2491
+
2492
+
NUT_ARG_WITH([docs-changelog-start], [Starting point when generating ChangeLog* files (default: auto; otherwise Git commit ID)], [auto])
2493
+
NUT_ARG_WITH([docs-changelog-end], [Ending point when generating ChangeLog* files (default: HEAD; otherwise Git commit ID)], [HEAD])
2490
2494
2491
2495
dnl Different OS distributions have different layouts of man page section
2492
2496
dnl numbers. The one we treat as default seems to be most wide-spread, in
@@ -3985,6 +3989,180 @@ fi
3985
3989
AM_CONDITIONAL(WITH_PDFS, test "${WITH_PDFS}" = "yes")
3986
3990
AM_CONDITIONAL(SKIP_PDFS, test "${SKIP_PDFS}" = "yes")
3987
3991
3992
+
dnl # NUT ChangeLog* files can consume a lot of build time,
3993
+
dnl # so we want to let developers skip (re-)building them
3994
+
dnl # if they enable docs and then iterate their code base.
3995
+
WITH_CHANGELOG_TEXT=no
3996
+
WITH_CHANGELOG_ADOC=no
3997
+
WITH_CHANGELOG_HTML_SINGLE=no
3998
+
WITH_CHANGELOG_HTML_CHUNKED=no
3999
+
WITH_CHANGELOG_PDF=no
4000
+
4001
+
dnl # Correlate "auto" with some measure of development iterations (quick) vs. release/tarball build (full). Can maintainer-mode be it?
4002
+
AS_IF([($NUT_SOURCE_GITREV_IS_RELEASE || $NUT_SOURCE_GITREV_IS_PRERELEASE) && test "${nut_enable_docs_changelog}" = auto],
4003
+
[nut_enable_docs_changelog=yes]
4004
+
)
4005
+
4006
+
case "${nut_enable_docs_changelog}" in
4007
+
no|skip) AC_MSG_NOTICE([Requested to not enable WITH_CHANGELOG_*])
4008
+
;;
4009
+
yes)
4010
+
AS_IF([test "${nut_with_doc}" != yes], [AC_MSG_ERROR([Can not enable WITH_CHANGELOG_* due to build settings or environment])])
4011
+
WITH_CHANGELOG_TEXT=yes
4012
+
WITH_CHANGELOG_ADOC=yes
4013
+
AS_IF([test "${WITH_HTML_SINGLE}" = "yes" -a "${SKIP_HTML_SINGLE}" = no],
4014
+
[WITH_CHANGELOG_HTML_SINGLE=yes],
4015
+
[AC_MSG_ERROR([Can not enable WITH_CHANGELOG_HTML_SINGLE due to build settings or environment])])
4016
+
AS_IF([test "${WITH_HTML_CHUNKED}" = "yes" -a "${SKIP_HTML_CHUNKED}" = no],
4017
+
[WITH_CHANGELOG_HTML_CHUNKED=yes],
4018
+
[AC_MSG_ERROR([Can not enable WITH_CHANGELOG_HTML_CHUNKED due to build settings or environment])])
4019
+
AS_IF([test "${WITH_PDFS}" = "yes" -a "${SKIP_PDFS}" = no],
4020
+
[WITH_CHANGELOG_PDF=yes],
4021
+
[AC_MSG_ERROR([Can not enable WITH_CHANGELOG_PDF due to build settings or environment])])
4022
+
;;
4023
+
auto|yes=auto|"")
4024
+
AS_IF([test "${nut_with_doc}" = yes], [
4025
+
WITH_CHANGELOG_TEXT=yes
4026
+
WITH_CHANGELOG_ADOC=yes
4027
+
AS_IF([test "${WITH_HTML_SINGLE}" = "yes" -a "${SKIP_HTML_SINGLE}" = no],
4028
+
[WITH_CHANGELOG_HTML_SINGLE=yes],
4029
+
[WITH_CHANGELOG_HTML_SINGLE=no
4030
+
AC_MSG_WARN([Can not enable WITH_CHANGELOG_HTML_SINGLE due to build settings or environment])
4031
+
])
4032
+
AS_IF([test "${WITH_HTML_CHUNKED}" = "yes" -a "${SKIP_HTML_CHUNKED}" = no],
4033
+
[WITH_CHANGELOG_HTML_CHUNKED=yes],
4034
+
[WITH_CHANGELOG_HTML_CHUNKED=no
4035
+
AC_MSG_WARN([Can not enable WITH_CHANGELOG_HTML_CHUNKED due to build settings or environment])
4036
+
])
4037
+
AS_IF([test "${WITH_PDFS}" = "yes" -a "${SKIP_PDFS}" = no],
4038
+
[WITH_CHANGELOG_PDF=yes],
4039
+
[WITH_CHANGELOG_PDF=no
4040
+
AC_MSG_WARN([Can not enable WITH_CHANGELOG_PDF due to build settings or environment])
4041
+
])
4042
+
], [
4043
+
AC_MSG_WARN([Can not enable WITH_CHANGELOG_* due to build settings or environment])
4044
+
])
4045
+
;;
4046
+
*)
4047
+
AS_IF([test "${nut_with_doc}" = yes], [
4048
+
4049
+
dnl # Check each complex format desire independently:
0 commit comments