Debian: adapt icinga-version.h.force for the snapshots

Refs #5816
This commit is contained in:
Markus Frosch 2014-06-13 10:20:44 +02:00
parent 98099a7fb0
commit 178fb927b1
3 changed files with 6 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
.vagrant
icinga-version.h.fallback
icinga-version.h.force
*.komodoproject

View File

@ -16,7 +16,7 @@
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
#
# this file is used to build icinga-version.h.fallback
# this file is used to build icinga-version.h.force
# for the Debian builds, it needs to be included in the tarball
#
@ -26,5 +26,5 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
include(GetGitRevisionDescription)
git_describe(GIT_VERSION --tags)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../icinga-version.h.cmake" icinga-version.h.fallback)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../icinga-version.h.cmake" icinga-version.h.force)

5
debian/rules vendored
View File

@ -7,11 +7,12 @@ export DH_VERBOSE=1
override_dh_auto_clean:
ifeq ($(shell test -d .git && echo "git"),git) # verify we are in a GIT repo
# ensure icinga-version.h.fallback to be present
# ensure icinga-version.h.force to be present
rm -f icinga-version.h.force icinga-version.h.fallback
rm -rf debian-prebuild/
mkdir debian-prebuild
cd debian-prebuild/ && cmake ../debian/
cp debian-prebuild/icinga-version.h.fallback .
cp debian-prebuild/icinga-version.h.force .
rm -rf debian-prebuild/
endif
# now clean build dir