Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- echo --- Attempting to roll back to ocaml-4.01.0_1
- cd /tmp
- mkdir "ocaml-4.01.0_1"
- chmod a+rx "ocaml-4.01.0_1"
- cd "ocaml-4.01.0_1"
- wget https://trac.macports.org/export/117887/trunk/dports/lang/ocaml/Portfile
- chmod a+r Portfile
- cmd="sudo port install configure.compiler=macports-gcc-4.8"
- echo --- $cmd
- $cmd
- rm Portfile
- cd ..
- rmdir "ocaml-4.01.0_1"
- echo; echo --- Attempting to roll back to unison-2.40.102_2
- cd /tmp
- mkdir "unison-2.40.102_2"
- chmod a+rx "unison-2.40.102_2"
- cd "unison-2.40.102_2"
- wget https://trac.macports.org/export/127145/trunk/dports/net/unison/Portfile
- chmod a+r Portfile
- mkdir "files"
- chmod a+rx "files"
- cd "files"
- wget https://trac.macports.org/export/127145/trunk/dports/net/unison/files/patch-Makefile.diff
- chmod a+r patch-Makefile.diff
- wget https://trac.macports.org/export/127145/trunk/dports/net/unison/files/patch-uprintf-crash.diff
- chmod a+r patch-uprintf-crash.diff
- cd ..
- cmd="sudo port -s install"
- echo --- $cmd
- $cmd
- rm files/patch-Makefile.diff
- rm files/patch-uprintf-crash.diff
- rmdir "files"
- rm Portfile
- cd ..
- rmdir "unison-2.40.102_2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement