Skip to content

Instantly share code, notes, and snippets.

@samth
Created September 8, 2015 03:48
Show Gist options
  • Save samth/6ccdb78443f428ce0a1a to your computer and use it in GitHub Desktop.
Save samth/6ccdb78443f428ce0a1a to your computer and use it in GitHub Desktop.
#!/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