mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
25 lines
723 B
Makefile
Executable file
25 lines
723 B
Makefile
Executable file
#!/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')
|
||
|
||
# Define temporary debian directory
|
||
TMPDIR = $$(pwd)/debian/yunohost-admin
|
||
|
||
%:
|
||
dh $@
|
||
|
||
override_dh_auto_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
|
||
|
||
# Install source files and set permissions
|
||
mkdir -p $(TMPDIR)/usr/share/yunohost
|
||
cp -r src $(TMPDIR)/usr/share/yunohost/admin
|
||
chown -R www-data $(TMPDIR)/usr/share/yunohost/admin
|