yesod/yesod-bin/update-hsfiles.sh
2013-03-20 08:58:27 +02:00

17 lines
365 B
Bash
Executable file

#!/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