Delete site before generating a new version

This commit is contained in:
Sami Samhuri 2019-12-01 22:47:07 -08:00
parent c4f7af1684
commit 95a240cbf5
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,8 @@ SOURCE_DIR="$1"
TARGET_DIR="$2"
function main() {
rm -rf "$TARGET_DIR"
echo "* generate site from $SOURCE_DIR into $TARGET_DIR"
"$THIS_DIR/sitegen" "$SOURCE_DIR" "$TARGET_DIR"

View file

@ -8,7 +8,6 @@ cp .build/x86_64-apple-macosx/debug/SiteGenerator ../bin/sitegen
popd >/dev/null
for site in Tests/test-*; do
rm -rf "$site/actual"
bin/compile "$site/in" "$site/actual" # >/dev/null
diff -ru "$site/expected" "$site/actual"
rm -r "$site/actual"