Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (24 sloc) 0.451 kB
#!/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
Jump to Line
Something went wrong with that request. Please try again.