mirror of
git://git.proxmox.com/git/novnc-pve.git
synced 2025-01-18 10:03:52 +03:00
d/rules use dpkg make script helper for package version
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
173f682a59
commit
eb3e349c4d
5
debian/rules
vendored
5
debian/rules
vendored
@ -1,10 +1,11 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
# Uncomment this to turn on verbose mode.
|
||||||
#export DH_VERBOSE=1
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
export DEB_BUILD_HARDENING=1
|
export DEB_BUILD_HARDENING=1
|
||||||
DEB_VERSION = $(shell dpkg-parsechangelog -SVersion)
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh ${@} --with quilt
|
dh ${@} --with quilt
|
||||||
@ -15,5 +16,5 @@ override_dh_auto_build:
|
|||||||
|
|
||||||
override_dh_install:
|
override_dh_install:
|
||||||
cp vnc.html index.html.tpl
|
cp vnc.html index.html.tpl
|
||||||
sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION}/g" index.html.tpl
|
sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION_UPSTREAM_REVISION}/g" index.html.tpl
|
||||||
dh_install
|
dh_install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user