|
|
@ -1,4 +1,4 @@ |
|
|
|
#!/bin/sh -e |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
|
|
|
|
# Copyright (c) 2021 Alessandro Mauri |
|
|
|
# Copyright (c) 2021 Alessandro Mauri |
|
|
|
# |
|
|
|
# |
|
|
@ -169,8 +169,7 @@ cp -r "$srcdir"/* "$destdir" |
|
|
|
rm -f "$destdir"/_header.html "$destdir"/_footer.html "$destdir"/_metadata.html |
|
|
|
rm -f "$destdir"/_header.html "$destdir"/_footer.html "$destdir"/_metadata.html |
|
|
|
|
|
|
|
|
|
|
|
# Generate an ordered (by open time) file list |
|
|
|
# Generate an ordered (by open time) file list |
|
|
|
find "$srcdir" -type f -regex '.*\/[^_].+\..*' -exec ls -1t {} + | |
|
|
|
find "$srcdir" -type f -exec ls -1t {} + | awk '/^.*\/[^_].+\.(md|html)$/' > "$objlist" |
|
|
|
awk '/.*\.(md|html)$/' > "$objlist" |
|
|
|
|
|
|
|
rm -f "$objdate" |
|
|
|
rm -f "$objdate" |
|
|
|
while IFS="" read -r file; do |
|
|
|
while IFS="" read -r file; do |
|
|
|
stat -c '%y' "$file" >> "$objdate" |
|
|
|
stat -c '%y' "$file" >> "$objdate" |
|
|
|