From ffcc1ce80addf70ceba0a8d6b48bbef29024d75d Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 5 Apr 2023 18:58:34 -0300 Subject: v2: dynamic.mk: Use hardlinks over copies --- TODOs.md | 2 -- v2/dynamic.mk | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/TODOs.md b/TODOs.md index a3d517e..4c3e661 100644 --- a/TODOs.md +++ b/TODOs.md @@ -540,8 +540,6 @@ sitemap remove slugify once? -use hardlinks over copying - po4a for markdown... article in root???? diff --git a/v2/dynamic.mk b/v2/dynamic.mk index 77636db..528f251 100644 --- a/v2/dynamic.mk +++ b/v2/dynamic.mk @@ -57,13 +57,13 @@ content = \ public-copy-content.sentinel: $(content) public-content-mkdir.sentinel echo $? | tr ' ' '\n' | grep '^src/content/' | sed 's|^src/content/||' | \ - xargs -P`nproc` -I% cp src/content/% public/% + xargs -P`nproc` -I% ln -f src/content/% public/% touch $@ public-copy-code-snippets.sentinel: $(all-generated.snippets) public-content-mkdir.sentinel echo $? | tr ' ' '\n' | grep '^src/content/' | \ xargs sed 's|^src/content/||' | \ - xargs -P`nproc` -I% cp src/content/% public/% + xargs -P`nproc` -I% ln -f src/content/% public/% touch $@ public-content-mkdir.sentinel: $(content) $(all-generated.snippets) -- cgit v1.2.3