Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: protocols
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (20 sloc) 0.533 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/bin/bash

# Do the raw setup for a new clojure-contrib library in the 1.3 world

if [ $# -ne 1 ]
then
  echo "Usage: `basename $0` repo-name"
  exit 1
fi

repo=$1

# Create the new directory
cd /home/tom/src/clj/autodoc-work-area/
mkdir $repo
cd $repo

# Clone the github repo into two separate directories
hub clone clojure/$repo src
git clone git@github.com:clojure/$repo.git autodoc

# Now turn the autodoc directory into a new gh-pages branch
cd autodoc/
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
Something went wrong with that request. Please try again.