Skip to content

Commit

Permalink
publish: jump many hoops
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusae committed Aug 31, 2011
1 parent 8e4d0de commit 9dda084
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
#!/bin/bash
#!/bin/bash -x

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

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

trap "rm -fr $out" 0 1 2
git clone -b gh-pages [email protected]:twitter/scala_school.git $out

git clone $root/.git $out
cd $out
git remote set-url origin [email protected]:twitter/scala_school.git
git fetch
git co gh-pages
cd $root
cp -r $dir/* $out/
cd $out
git add .
Expand Down

0 comments on commit 9dda084

Please sign in to comment.