example: don't parse ls(1) output - saait - the most boring static page generat… | |
git clone git://git.codemadness.org/saait | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 62f181347393a0c3c5516c2b47bc6fe71d6760c1 | |
parent 447fdc59aaa7c15ab9af74b582c33d5bb9b883c0 | |
Author: Augustin Fabre <[email protected]> | |
Date: Wed, 16 Oct 2019 09:11:20 +0200 | |
example: don't parse ls(1) output | |
Diffstat: | |
M Makefile.example | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/Makefile.example b/Makefile.example | |
@@ -1,6 +1,6 @@ | |
generate: | |
mkdir -p output | |
- saait `ls -1r pages/*.cfg` | |
+ find pages -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait | |
cp style.css print.css output/ | |
view: |