From 194de9213da1d1d98db96ce13bc26c104f5c3195 Mon Sep 17 00:00:00 2001 From: opi Date: Mon, 31 Aug 2015 12:17:55 +0200 Subject: [PATCH] [enh] Use current pkg version in index.html to update browser cache. --- debian/rules | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/rules b/debian/rules index ae667a0a..8fa5cf91 100755 --- a/debian/rules +++ b/debian/rules @@ -4,5 +4,15 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +# Get package version +# dpkg-parsechangelog > 1.17 could use dpkg-parsechangelog --show-field Version +DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') + %: dh $@ + +override_dh_install: + # Replace VERSION with current package version to prevent web browser + # to serve old css/js files + sed -i 's/VERSION/'$DEBVERS'/g' src/index.html + dh_install \ No newline at end of file