This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Scott Southwood
authored and
Scott Southwood
committed
Feb 1, 2015
1 parent
71c7bee
commit d8c76a4
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# generate docs | ||
gradle docs | ||
|
||
# save local.properties | ||
git add local.properties -f | ||
git stash | ||
|
||
# add docs to version control | ||
git add applicationinsights-android/build/docs/javadoc -f | ||
git stash | ||
|
||
# clear old docs | ||
git checkout gh-pages | ||
git clean -xdf | ||
git rm -rf . | ||
|
||
# add updated docs | ||
git stash pop | ||
mv applicationinsights-android/build/docs/javadoc/* ./ | ||
rm -rf applicationinsights-android | ||
git add -A | ||
git commit -m "updating docs via update-docs.sh" | ||
git push | ||
|
||
# restore local.properties | ||
git checkout master | ||
git stash pop | ||
git reset HEAD local.properties |