update-hsfiles.sh

This commit is contained in:
Michael Snoyman 2012-11-05 16:30:26 +02:00
parent b530bb9aaa
commit 2af6882ba1

17
yesod/update-hsfiles.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash -ex
rm -rf yesod-scaffold
git clone https://github.com/yesodweb/yesod-scaffold yesod-scaffold
cd yesod-scaffold
for branch in `git branch --no-color -a | grep remotes | grep -v HEAD | grep -v master`
do
git checkout $branch
git checkout -b ${branch##*/}
done
git checkout master
runghc build.hs
cp hsfiles/* ../hsfiles
rm -rf yesod-scaffold