mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-21 14:19:30 -04:00
Allow custom versions with the release file...
This commit is contained in:
parent
53efa53d5d
commit
43c187a944
4 changed files with 11 additions and 3 deletions
|
|
@ -101,6 +101,14 @@ AC_SUBST(REV_TIMESTAMP)
|
|||
dnl Check if version file is present
|
||||
AM_CONDITIONAL([RELEASE_PRESENT], [test -f release])
|
||||
|
||||
# Also read in the version from it
|
||||
if test -f release; then
|
||||
NP_RELEASE="$(<release)"
|
||||
else
|
||||
NP_RELEASE="$PACKAGE_VERSION"
|
||||
fi
|
||||
AC_SUBST(NP_RELEASE)
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PATH_PROG(PYTHON,python)
|
||||
AC_PATH_PROG(SH,sh)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
if RELEASE_PRESENT
|
||||
NP_VERSION = $(PACKAGE_VERSION)
|
||||
NP_VERSION = @NP_RELEASE@
|
||||
else
|
||||
NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
|
||||
@$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
if RELEASE_PRESENT
|
||||
NP_VERSION = $(PACKAGE_VERSION)
|
||||
NP_VERSION = @NP_RELEASE@
|
||||
else
|
||||
NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
|
||||
@$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
if RELEASE_PRESENT
|
||||
NP_VERSION = $(PACKAGE_VERSION)
|
||||
NP_VERSION = @NP_RELEASE@
|
||||
else
|
||||
NP-VERSION-FILE: .FORCE-NP-VERSION-FILE
|
||||
@$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN
|
||||
|
|
|
|||
Loading…
Reference in a new issue