Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (18 sloc) 0.707 kB
#!/bin/sh
## updates the javadocs hosted at
## http://soundcloud.github.com/java-api-wrapper/javadoc/com/soundcloud/api/package-summary.html
## by regenerating them via gradle and pushing them back to gh-pages
DOCS=docs
JAVADOCS=build/javadoc
set -e
trap "rm -rf $PWD/$DOCS" EXIT
rm -rf $DOCS $JAVADOCS
git clone git@github.com:soundcloud/java-api-wrapper.git $DOCS -b gh-pages
gradle doc
VERSION=$(basename $JAVADOCS/*)
rsync -f 'exclude .git' -r --delete $JAVADOCS/$VERSION $DOCS/javadoc
cd $DOCS
git commit -m "javadocs for $VERSION" -a --allow-empty
git add .
git commit --amend -a -m "javadocs for $VERSION" --allow-empty
git diff origin/gh-pages --summary --exit-code || git push origin gh-pages
Jump to Line
Something went wrong with that request. Please try again.