example: don't parse ls(1) output - saait - the most boring static page generator
HTML git clone git://git.codemadness.org/saait
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 62f181347393a0c3c5516c2b47bc6fe71d6760c1
DIR parent 447fdc59aaa7c15ab9af74b582c33d5bb9b883c0
HTML Author: Augustin Fabre <augustin@augfab.fr>
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(-)
---
DIR 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: