Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (24 sloc) 0.451 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 27 28 29 30
#!/bin/bash

if [ $# -eq 0 ]; then
  echo 'you must have something to publish' 1>&2
  exit 1
fi

for f; do
  if [ ! -f $f ]; then
    echo $f' is not a valid file!' 1>&2
    exit 1
  fi
done

root=$(
  cd $(dirname $0)
  /bin/pwd
)

dir=$1
out=/tmp/effectivescala.$$

trap "rm -fr $out" 0 1 2

git clone -b gh-pages git@github.com:twitter/effectivescala.git $out
cp $* $out
cd $out
git add .
git commit -am"publish by $USER"
git push origin gh-pages
Something went wrong with that request. Please try again.