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
Add home/index link to article pages.
[redo-blog]
/
processor
/
feed.xml.do
diff --git
a/processor/feed.xml.do
b/processor/feed.xml.do
index 2b4396957954b5eab9c021a0d3695c1fb2a7dfcb..717fa89c9590c96afdb645f4860288649e2e4067 100644
(file)
--- a/
processor/feed.xml.do
+++ b/
processor/feed.xml.do
@@
-1,8
+1,8
@@
#!/bin/sh
# Pull in global dependencies.
#!/bin/sh
# Pull in global dependencies.
-metadata_dir=.meta
-. "$metadata_dir"/helpers.sh
+. ./helpers.sh
+metadata_dir=metadata
author_file="$metadata_dir"/author
uuid_file="$metadata_dir"/uuid
title_file="$metadata_dir"/title
author_file="$metadata_dir"/author
uuid_file="$metadata_dir"/uuid
title_file="$metadata_dir"/title
@@
-60,8
+60,10
@@
printf "<updated>%s</updated>\n\n" "$lastmod_rfc3339"
# Write feed entries.
for file in ./${tmp_snippets_dir}/*; do
# Write feed entries.
for file in ./${tmp_snippets_dir}/*; do
- cat "${file}"
- printf "\n"
+ if [ -e "$file" ]; then
+ cat "${file}"
+ printf "\n"
+ fi
done
rm -rf "$tmp_snippets_dir"
done
rm -rf "$tmp_snippets_dir"