]> git.proxmox.com Git - novnc-pve.git/blob - debian/rules
add version to js/css url to prevent caching
[novnc-pve.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 export DEB_BUILD_HARDENING=1
7 DEB_VERSION = $(shell dpkg-parsechangelog -SVersion)
8
9 override_dh_auto_build:
10 compile-modules convert -f bundle app/ui.js > app.js
11 dh_auto_build
12
13 override_dh_install:
14 cp vnc.html index.html.tpl
15 sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION}/g" index.html.tpl
16 dh_install
17
18 %:
19 dh ${@} --with quilt