Browse Source

fix not deleting _meatadata.html

master
Alessandro Mauri 1 year ago
parent
commit
2d7d0e7f22
  1. 8
      rivet.sh

8
rivet.sh

@ -126,6 +126,12 @@ if ! [ -e "$footerfile" ]; then @@ -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/<header.*>//' "$headerfile"
sed -i 's/<\/header>//' "$headerfile"
@ -155,7 +161,7 @@ fi @@ -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 {} + |

Loading…
Cancel
Save