debian: Report upstream and package version instead of git revision
This commit is contained in:
parent
6617c7fc5d
commit
ba4bec7d09
|
@ -15,6 +15,8 @@ ifeq ($(distrelease),n/a)
|
||||||
distrelease := sid
|
distrelease := sid
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
GIT_VERSION = "Git v$(DEB_VERSION_UPSTREAM)" packaged as "$(DEB_VERSION)"
|
||||||
|
|
||||||
# This has to be exported to make some magic below work.
|
# This has to be exported to make some magic below work.
|
||||||
export DH_OPTIONS
|
export DH_OPTIONS
|
||||||
|
|
||||||
|
@ -34,6 +36,7 @@ endif
|
||||||
dh $@ --with python3 --buildsystem $(DH_BUILDSYSTEM) --with quilt
|
dh $@ --with python3 --buildsystem $(DH_BUILDSYSTEM) --with quilt
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
|
echo "#define VCSVERSION \"$(GIT_VERSION)\"" > version.h
|
||||||
dh_auto_configure -- -DBUILD_xxx2deb=ON -DBUILD_corbaidl2wrs=ON
|
dh_auto_configure -- -DBUILD_xxx2deb=ON -DBUILD_corbaidl2wrs=ON
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
|
|
Loading…
Reference in New Issue