From 30c3ae5dbaa90afd9b30071a7f22bc15e54ec09f Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Thu, 5 Dec 2019 02:16:54 +0300 Subject: Update tools scripts --- tools/docs-push-gh-pages | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/docs-push-gh-pages') diff --git a/tools/docs-push-gh-pages b/tools/docs-push-gh-pages index 36e80f8..4d07dbd 100755 --- a/tools/docs-push-gh-pages +++ b/tools/docs-push-gh-pages @@ -1,13 +1,14 @@ #!/bin/bash +set -e ./docs-generate cd .. git checkout gh-pages -find . -maxdepth 1 -not -name "docs" -not -name ".git" -not -name "tools" -print0 | xargs -0 rm -r +find . -maxdepth 1 -not -name "docs" -not -name ".git" -not -name "tools" -print0 | xargs -0 rm -r || true mv docs/* . mv docs/.nojekyll . rmdir docs -rm -r tools/* +rm -r tools/* || true git add -A git commit -m "Updated docs $(date)" git push origin gh-pages -- cgit v1.2.3