diff options
author | EuAndreh <eu@euandre.org> | 2023-04-05 18:57:52 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-04-05 18:57:52 -0300 |
commit | f05931e30344befcfc65d88490d79e29afea11e6 (patch) | |
tree | 9b37f1a2ff87dcddd210cfaae7a99d208faa47f1 /v2/dynamic.mk | |
parent | v2: src/content/en/about.md: Remove spurious code block (diff) | |
download | euandre.org-f05931e30344befcfc65d88490d79e29afea11e6.tar.gz euandre.org-f05931e30344befcfc65d88490d79e29afea11e6.tar.xz |
v2: dynamic.mk: Smarter use of xargs+sed over xargs -> sh
Diffstat (limited to '')
-rw-r--r-- | v2/dynamic.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/v2/dynamic.mk b/v2/dynamic.mk index 0aa6420..77636db 100644 --- a/v2/dynamic.mk +++ b/v2/dynamic.mk @@ -61,9 +61,9 @@ public-copy-content.sentinel: $(content) public-content-mkdir.sentinel touch $@ public-copy-code-snippets.sentinel: $(all-generated.snippets) public-content-mkdir.sentinel - echo $? | tr ' ' '\n' | grep '^src/content/' | sed 's|^src/content/||' | \ - awk '{ printf "if [ -s src/content/%s ]; then cp `cat src/content/%s` public/`dirname %s`; fi\n", $$0, $$0, $$0 }' | \ - sh + echo $? | tr ' ' '\n' | grep '^src/content/' | \ + xargs sed 's|^src/content/||' | \ + xargs -P`nproc` -I% cp src/content/% public/% touch $@ public-content-mkdir.sentinel: $(content) $(all-generated.snippets) |