home
·
contact
·
privacy
projects
/
redo-blog
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1 from sternenseemann/patch-1
[redo-blog]
/
processor
/
index.html.do
diff --git
a/processor/index.html.do
b/processor/index.html.do
index 2b71ffb486cd624f39c3eb12e9dcaaeb3c93e69c..1bd4dd13115f32556b77e065b223e8e488eb584e 100644
(file)
--- a/
processor/index.html.do
+++ b/
processor/index.html.do
@@
-15,8
+15,9
@@
blog_title=`read_and_escape_file "$title_file" | head -1`
printf "<title>%s</title>\n</head>\n<body>\n" "$blog_title"
printf "<h1>%s</h1>\n<ul>\n" "$blog_title"
printf "<title>%s</title>\n</head>\n<body>\n" "$blog_title"
printf "<h1>%s</h1>\n<ul>\n" "$blog_title"
-# Iterate through entries sorted by lastmod of their source files, write entry
-# list.
+# Iterate through entries sorted by lastmod of their source files, write entry.
+# FIXME: This ls parsing is a bad way to loop through the sorted files. Besides,
+# $'\0' is a bashism.
first_run=0
files=`ls -1t *.rst *.md | tr '\n' $'\0'`
oldIFS="$IFS"
first_run=0
files=`ls -1t *.rst *.md | tr '\n' $'\0'`
oldIFS="$IFS"