mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
Delete site before generating a new version
This commit is contained in:
parent
c4f7af1684
commit
95a240cbf5
2 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
1
bin/test
1
bin/test
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue