mirror of https://github.com/Icinga/icinga2.git
parent
98099a7fb0
commit
178fb927b1
|
@ -1,3 +1,3 @@
|
|||
.vagrant
|
||||
icinga-version.h.fallback
|
||||
icinga-version.h.force
|
||||
*.komodoproject
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue