update-hsfiles.sh 365 B

123456789101112131415161718
  1. #!/bin/bash -ex
  2. rm -rf yesod-scaffold
  3. git clone https://github.com/yesodweb/yesod-scaffold yesod-scaffold
  4. cd yesod-scaffold
  5. for branch in `git branch --no-color -a | grep remotes | grep -v HEAD | grep -v master`
  6. do
  7. git checkout $branch
  8. git checkout -b ${branch##*/}
  9. done
  10. git checkout master
  11. runghc build.hs
  12. cp hsfiles/* ../hsfiles
  13. rm -rf yesod-scaffold