yWeb: add hack to Makefile to replace %(FAKE_VARIABLES) after install

Origin commit data
------------------
Commit: 61b56cdf58
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-01 (Sat, 01 Oct 2016)

Origin message was:
------------------
- yWeb: add hack to Makefile to replace %(FAKE_VARIABLES) after install
This commit is contained in:
vanhofen
2016-10-01 11:06:11 +02:00
parent 32668ed67a
commit 3507c534e4

View File

@@ -99,3 +99,11 @@ install_DATA += accordion.js \
Y_Filemgr.yhtm \
Y_Filemgr_Edit.yhtm \
Y_Filemgr_blocks.txt
install-data-hook:
@# Badass hack, I know. If anyone knows a better way -- please send patch!
find $(DESTDIR)$(PRIVATE_HTTPDDIR)/ -type f -print0 | xargs --no-run-if-empty -0 \
sed -i \
-e 's|%(CONFIGDIR)|$(CONFIGDIR)|g' \
;