Debian: only update icinga-version.h.fallback when in a GIT repo.

This avoids the version coming out as GIT-UNKNOWN after chroot builds.

Fixes #5294
This commit is contained in:
Markus Frosch 2013-12-11 13:22:00 +01:00
parent 66845d05f8
commit 2ca8be6ecd
1 changed files with 2 additions and 0 deletions

2
debian/rules vendored
View File

@ -6,12 +6,14 @@ export DH_VERBOSE=1
dh $@
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
rm -rf debian-prebuild/
mkdir debian-prebuild
cd debian-prebuild/ && cmake ../debian/
cp debian-prebuild/icinga-version.h.fallback .
rm -rf debian-prebuild/
endif
# now clean build dir
dh_auto_clean
rm -f config.log