Make docs/udpate_docs.sh executable

Including a misc clean-up in the script.

Change-Id: I7bda3ac52e15712356cc286caba08e1fd9db68e1
This commit is contained in:
KongQun Yang 2018-05-23 16:29:08 -07:00
parent 192ef2a0ac
commit 951fedaf41
1 changed files with 1 additions and 1 deletions

2
docs/update_docs.sh Normal file → Executable file
View File

@ -24,11 +24,11 @@ cd docs
make html make html
cd ../out cd ../out
rm -rf gh-pages
# If SITE_DIRECTORY is specified, it is assumed to be local evaluation, so we # If SITE_DIRECTORY is specified, it is assumed to be local evaluation, so we
# will not try to update Git repository. # will not try to update Git repository.
if [[ -z ${SITE_DIRECTORY} ]] ; then if [[ -z ${SITE_DIRECTORY} ]] ; then
rm -rf gh-pages
git clone --depth 1 https://github.com/google/shaka-packager -b gh-pages gh-pages git clone --depth 1 https://github.com/google/shaka-packager -b gh-pages gh-pages
cd gh-pages cd gh-pages
git rm -rf * git rm -rf *