главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Fenollosa <carlos.fenollosa@gmail.com>2013-02-21 17:11:09 +0100
committerCarlos Fenollosa <carlos.fenollosa@gmail.com>2013-02-21 17:11:09 +0100
commit08b0bc684699ed8e7dff0189c2c72de793c97384 (patch)
treea1b4e037c0b8f46a62d183b5a6082240f9f59d5c
parentcefc5dad1ed855eace8f0452cf8ee5d8de7f9dc2 (diff)
Fixed bugs in date handling
-rwxr-xr-xbb.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bb.sh b/bb.sh
index 73fe936..27e1d22 100755
--- a/bb.sh
+++ b/bb.sh
@@ -370,7 +370,7 @@ all_posts() {
title="$(awk '/<h3><a class="ablack" href=".+">/, /<\/a><\/h3>/{if (!/<h3><a class="ablack" href=".+">/ && !/<\/a><\/h3>/) print}' $i)"
echo -n '<li><a href="'$global_url/$i'">'$title'</a> &mdash;' >> "$contentfile"
# Date
- date="$(LC_ALL=date_locale date -r "$i" "$date_format")"
+ date="$(LC_ALL=date_locale date -r "$i" +"$date_format")"
echo " $date</li>" >> "$contentfile"
done
echo ""
@@ -423,7 +423,7 @@ list_posts() {
n=1
for i in $(ls -t *.html); do
if [ "$i" == "$index_file" ] || [ "$i" == "$archive_index" ]; then continue; fi
- line="$n # $(awk '/<h3><a class="ablack" href=".+">/, /<\/a><\/h3>/{if (!/<h3><a class="ablack" href=".+">/ && !/<\/a><\/h3>/) print}' $i) # $(LC_ALL=date_locale date -r $i "date_format")"
+ line="$n # $(awk '/<h3><a class="ablack" href=".+">/, /<\/a><\/h3>/{if (!/<h3><a class="ablack" href=".+">/ && !/<\/a><\/h3>/) print}' $i) # $(LC_ALL=date_locale date -r $i +"date_format")"
lines="${lines}""$line""\n" # Weird stuff needed for the newlines
n=$(( $n + 1 ))
done