mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 17:14:25 +02:00
parent
98099a7fb0
commit
178fb927b1
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
.vagrant
|
.vagrant
|
||||||
icinga-version.h.fallback
|
icinga-version.h.force
|
||||||
*.komodoproject
|
*.komodoproject
|
||||||
|
4
debian/CMakeLists.txt
vendored
4
debian/CMakeLists.txt
vendored
@ -16,7 +16,7 @@
|
|||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
|
# 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
|
# 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)
|
include(GetGitRevisionDescription)
|
||||||
git_describe(GIT_VERSION --tags)
|
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
5
debian/rules
vendored
@ -7,11 +7,12 @@ export DH_VERBOSE=1
|
|||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
ifeq ($(shell test -d .git && echo "git"),git) # verify we are in a GIT repo
|
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/
|
rm -rf debian-prebuild/
|
||||||
mkdir debian-prebuild
|
mkdir debian-prebuild
|
||||||
cd debian-prebuild/ && cmake ../debian/
|
cd debian-prebuild/ && cmake ../debian/
|
||||||
cp debian-prebuild/icinga-version.h.fallback .
|
cp debian-prebuild/icinga-version.h.force .
|
||||||
rm -rf debian-prebuild/
|
rm -rf debian-prebuild/
|
||||||
endif
|
endif
|
||||||
# now clean build dir
|
# now clean build dir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user