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