1#!/bin/bash 2 3# Commit b3205fa199a19d6fbf13ee5c8e0c3d6d2b15b05f contains 4# Javadoc for Okio 1.x. Those should be present on 5# gh-pages and published along with the other website 6# content, but if for some reason they have to be re-added 7# to gh-pages - run this script locally. 8 9set -ex 10 11REPO="git@github.com:square/okio.git" 12DIR=temp-clone 13 14# Delete any existing temporary website clone 15rm -rf $DIR 16 17# Clone the current repo into temp folder 18git clone $REPO $DIR 19 20# Move working directory into temp folder 21cd $DIR 22 23# Restore Javadocs from 1.x 24git checkout gh-pages 25git cherry-pick b3205fa199a19d6fbf13ee5c8e0c3d6d2b15b05f 26git push 27 28# Delete our temp folder 29cd .. 30rm -rf $DIR 31