swerc

anselm's simpler werc fork
git clone git://git.suckless.org/swerc
Log | Files | Refs | README

commit f960d8376a15df4a369745ae97a18d987aceb589
parent 9dae0dd2e17afe6c73938aef05c5efec92558e11
Author: uriel@soma <unknown>
Date:   Sat, 13 Dec 2008 16:16:10 +0000

Fix: don't completely delete 'sort helper' delimiter, revert it back to a '/', and coalesce any extra '/' for tidiness
Diffstat:
Mbin/werc.rc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/werc.rc b/bin/werc.rc @@ -79,7 +79,7 @@ fn sortedBlogPostList { # the /./->/|/ are added so we can sort -t| and order only the file name # NOTE: this breaks if any path element in blogDirs contain '/./' or '|' if (! ~ $#* 0) - ls $*^'/./' | sed -n 's,/\./,/|/,; /\/[0-9]+.*\.md$/p' | sort -r '-t|' +1 | sed 's,/\|/,,' + ls $*^'/./' | sed -n 's,/\./,/|/,; /\/[0-9]+.*\.md$/p' | sort -r '-t|' +1 | sed 's,/+\|/+,/,' } fn gen_blog_post_title {