diff options
author | nagiosplugins <nagiosplugins@nagiosplugins.org> | 2009-09-25 08:18:04 +0000 |
---|---|---|
committer | nagiosplugins <nagiosplugins@nagiosplugins.org> | 2009-09-25 09:31:04 +0000 |
commit | 43c187a9444ddfdac26fb5c2e2f21dd38c72ce8d (patch) | |
tree | c510f5c620d3a8c17f29ab5635cbf78fcb893d41 | |
parent | 53efa53d5de82631accb2ac98c876f9fa477d19d (diff) | |
download | monitoring-plugins-43c187a9444ddfdac26fb5c2e2f21dd38c72ce8d.tar.gz |
Allow custom versions with the release file...
-rw-r--r-- | configure.in | 8 | ||||
-rw-r--r-- | plugins-root/Makefile.am | 2 | ||||
-rw-r--r-- | plugins-scripts/Makefile.am | 2 | ||||
-rw-r--r-- | plugins/Makefile.am | 2 |
4 files changed, 11 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 505af93e..5cc693c2 100644 --- a/configure.in +++ b/configure.in | |||
@@ -101,6 +101,14 @@ AC_SUBST(REV_TIMESTAMP) | |||
101 | dnl Check if version file is present | 101 | dnl Check if version file is present |
102 | AM_CONDITIONAL([RELEASE_PRESENT], [test -f release]) | 102 | AM_CONDITIONAL([RELEASE_PRESENT], [test -f release]) |
103 | 103 | ||
104 | # Also read in the version from it | ||
105 | if test -f release; then | ||
106 | NP_RELEASE="$(<release)" | ||
107 | else | ||
108 | NP_RELEASE="$PACKAGE_VERSION" | ||
109 | fi | ||
110 | AC_SUBST(NP_RELEASE) | ||
111 | |||
104 | dnl Checks for programs. | 112 | dnl Checks for programs. |
105 | AC_PATH_PROG(PYTHON,python) | 113 | AC_PATH_PROG(PYTHON,python) |
106 | AC_PATH_PROG(SH,sh) | 114 | AC_PATH_PROG(SH,sh) |
diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am index dcab4cc7..21840535 100644 --- a/plugins-root/Makefile.am +++ b/plugins-root/Makefile.am | |||
@@ -1,7 +1,7 @@ | |||
1 | ## Process this file with automake to produce Makefile.in | 1 | ## Process this file with automake to produce Makefile.in |
2 | 2 | ||
3 | if RELEASE_PRESENT | 3 | if RELEASE_PRESENT |
4 | NP_VERSION = $(PACKAGE_VERSION) | 4 | NP_VERSION = @NP_RELEASE@ |
5 | else | 5 | else |
6 | NP-VERSION-FILE: .FORCE-NP-VERSION-FILE | 6 | NP-VERSION-FILE: .FORCE-NP-VERSION-FILE |
7 | @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN | 7 | @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN |
diff --git a/plugins-scripts/Makefile.am b/plugins-scripts/Makefile.am index d1ea3c41..58db0604 100644 --- a/plugins-scripts/Makefile.am +++ b/plugins-scripts/Makefile.am | |||
@@ -1,7 +1,7 @@ | |||
1 | ## Process this file with automake to produce Makefile.in | 1 | ## Process this file with automake to produce Makefile.in |
2 | 2 | ||
3 | if RELEASE_PRESENT | 3 | if RELEASE_PRESENT |
4 | NP_VERSION = $(PACKAGE_VERSION) | 4 | NP_VERSION = @NP_RELEASE@ |
5 | else | 5 | else |
6 | NP-VERSION-FILE: .FORCE-NP-VERSION-FILE | 6 | NP-VERSION-FILE: .FORCE-NP-VERSION-FILE |
7 | @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN | 7 | @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN |
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 37de7536..4570fb7a 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am | |||
@@ -1,7 +1,7 @@ | |||
1 | ## Process this file with automake to produce Makefile.in | 1 | ## Process this file with automake to produce Makefile.in |
2 | 2 | ||
3 | if RELEASE_PRESENT | 3 | if RELEASE_PRESENT |
4 | NP_VERSION = $(PACKAGE_VERSION) | 4 | NP_VERSION = @NP_RELEASE@ |
5 | else | 5 | else |
6 | NP-VERSION-FILE: .FORCE-NP-VERSION-FILE | 6 | NP-VERSION-FILE: .FORCE-NP-VERSION-FILE |
7 | @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN | 7 | @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN |