FIX: Avoid breaking symlinks during copy.

This commit is contained in:
Julien Palard 2023-05-26 16:12:37 +02:00
parent e37af50649
commit 7497d56e53
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8

View File

@ -3,7 +3,7 @@ DEST := $(notdir $(PWD))
.PHONY: static .PHONY: static
static: output/index.html static: output/index.html
if [ -d static ]; then cp -a static/ output/; fi if [ -d static ]; then cp -rpL static/ output/; fi
%.html: %.md %.html: %.md
sed 's/#!//e;' $< | mdtoreveal /dev/stdin --output $@ sed 's/#!//e;' $< | mdtoreveal /dev/stdin --output $@