yunohost-admin/debian/rules

18 lines
No EOL
469 B
Makefile
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/make -f
# -*- makefile -*-
# 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