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

This commit is contained in:
svenhoefer
2016-10-01 11:06:11 +02:00
parent cc5f776780
commit 61b56cdf58

View File

@@ -99,3 +99,11 @@ install_DATA += accordion.js \
Y_Filemgr.yhtm \ Y_Filemgr.yhtm \
Y_Filemgr_Edit.yhtm \ Y_Filemgr_Edit.yhtm \
Y_Filemgr_blocks.txt 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' \
;