Created
September 8, 2015 03:48
-
-
Save samth/6ccdb78443f428ce0a1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
(raco pkg show $1 | grep clone) || (raco pkg remove $1 && raco pkg install --no-setup --clone $1) | |
cd $1 | |
hub fork || echo "fork already exists" | |
hub checkout -b auto-fix-deps || hub checkout auto-fix-deps | |
hub reset --hard origin/master | |
raco setup --fix-pkg-deps || echo "fixed" | |
hub add info.rkt | |
hub commit -m "Fix dependencies." | |
hub push -f samth auto-fix-deps | |
hub pull-request -m "Fix dependencies." | |
raco pkg remove $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment