Advertisement
Polyergic

macports-revert-unison.sh

Jan 17th, 2015
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. echo --- Attempting to roll back to ocaml-4.01.0_1
  4. cd /tmp
  5. mkdir "ocaml-4.01.0_1"
  6. chmod a+rx "ocaml-4.01.0_1"
  7. cd "ocaml-4.01.0_1"
  8. wget https://trac.macports.org/export/117887/trunk/dports/lang/ocaml/Portfile
  9. chmod a+r Portfile
  10. cmd="sudo port install configure.compiler=macports-gcc-4.8"
  11. echo --- $cmd
  12. $cmd
  13. rm Portfile
  14. cd ..
  15. rmdir "ocaml-4.01.0_1"
  16.  
  17. echo; echo --- Attempting to roll back to unison-2.40.102_2
  18. cd /tmp
  19. mkdir "unison-2.40.102_2"
  20. chmod a+rx "unison-2.40.102_2"
  21. cd "unison-2.40.102_2"
  22. wget https://trac.macports.org/export/127145/trunk/dports/net/unison/Portfile
  23. chmod a+r Portfile
  24. mkdir "files"
  25. chmod a+rx "files"
  26. cd "files"
  27. wget https://trac.macports.org/export/127145/trunk/dports/net/unison/files/patch-Makefile.diff
  28. chmod a+r patch-Makefile.diff
  29. wget https://trac.macports.org/export/127145/trunk/dports/net/unison/files/patch-uprintf-crash.diff
  30. chmod a+r patch-uprintf-crash.diff
  31. cd ..
  32. cmd="sudo port -s install"
  33. echo --- $cmd
  34. $cmd
  35. rm files/patch-Makefile.diff
  36. rm files/patch-uprintf-crash.diff
  37. rmdir "files"
  38. rm Portfile
  39. cd ..
  40. rmdir "unison-2.40.102_2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement