|
|
@ -126,6 +126,12 @@ if ! [ -e "$footerfile" ]; then |
|
|
|
echo "Missing _footer.html in $srcdir" |
|
|
|
echo "Missing _footer.html in $srcdir" |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! [ -e "$metafile" ]; then |
|
|
|
|
|
|
|
echo "Missing _metadata.html in $srcdir" |
|
|
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Remove junk from {header,footer} files |
|
|
|
# Remove junk from {header,footer} files |
|
|
|
sed -i 's/<header.*>//' "$headerfile" |
|
|
|
sed -i 's/<header.*>//' "$headerfile" |
|
|
|
sed -i 's/<\/header>//' "$headerfile" |
|
|
|
sed -i 's/<\/header>//' "$headerfile" |
|
|
@ -155,7 +161,7 @@ fi |
|
|
|
rm -rf "$destdir" |
|
|
|
rm -rf "$destdir" |
|
|
|
mkdir -p "$destdir" |
|
|
|
mkdir -p "$destdir" |
|
|
|
cp -r "$srcdir"/* "$destdir" |
|
|
|
cp -r "$srcdir"/* "$destdir" |
|
|
|
rm -f "$destdir"/_header.html "$destdir"/_footer.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 -regex '.*\/[^_].+\..*' -exec ls -1t {} + | |
|
|
|