diff options
author | Adam T. Carpenter <atc@53hor.net> | 2021-01-15 15:04:47 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2021-01-15 15:04:47 -0500 |
commit | 2ff477a92324be98d59695f2795f0b178ff3196a (patch) | |
tree | 3d0852aa07b15d7d77c4d2e8440b3808ce459f78 /Makefile | |
parent | 0c3a3e015b66eeac415580cb9f0391184e54853f (diff) | |
download | 53hor-2ff477a92324be98d59695f2795f0b178ff3196a.tar.xz 53hor-2ff477a92324be98d59695f2795f0b178ff3196a.zip |
fixed makefile titles, also published zroot mirrored vdevs
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ post: SHORT_DATE=`date +"%Y-%m-%d"`; \ LONG_DATE=`date +"%a, %d %b %Y"`; \ mkdir -p posts/$$CATEGORY; \ - FILENAME=posts/$$CATEGORY/$$SHORT_DATE-`echo $$TITLE | tr -C "[:alnum:]" ' ' | tr "[:upper:]" "[:lower:]" | tr -s "[:blank:]" ' '`.html; \ + FILENAME=posts/$$CATEGORY/$$SHORT_DATE-`printf "$$TITLE" | tr -Cs "[:alnum:]" '-' | tr "[:upper:]" "[:lower:]"`.html; \ cp $(TEMPLATE) $$FILENAME; \ sed -i '' "s/{{ title }}/$$TITLE/g" $$FILENAME; \ $$EDITOR $$FILENAME; \ |