Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
  4. cltools=$(softwareupdate -l | grep "\*.*Command Line" | head -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | tr -d '\n')
  5. sudo -S <<< "password" softwareupdate -i "$cltools" --verbose
  6.  
  7. # from https://clover-wiki.zetam.org/Development
  8.  
  9. cd ~
  10. mkdir src
  11. cd src
  12. svn co -r 20495 svn://svn.code.sf.net/p/edk2/code/trunk/edk2 edk2 --non-interactive --trust-server-cert
  13. cd edk2
  14. make -C BaseTools/Source/C
  15. svn co -r 3423 svn://svn.code.sf.net/p/cloverefiboot/code Clover --non-interactive --trust-server-cert
  16. cd Clover
  17. ./buildgettext.sh
  18. ./buildgcc-4.9.sh
  19. ./buildnasm.sh
  20. #cd ..
  21. #./edksetup.sh
  22. #cp -R Clover/Patches_for_EDK2/* ./
  23. #cd Clover
  24. #mbrdecl=$(curl http://pastebin.com/raw/ZgQh5dcP | tr -d '\r')
  25. #mbrpatch=$(curl http://pastebin.com/raw/P4TqDkvn | tr -d '\r')
  26. #perl -i -pe 'BEGIN { undef $/; } s/(RefitMain.+?{)/$1\n'"$mbrdecl"'\n/s' rEFIt_UEFI/refit/main.c
  27. #perl -i -pe 'BEGIN { undef $/; } s/(EfiGetSystemConfigurationTable.+?;)/$1\n'"$mbrpatch"'\n/s' rEFIt_UEFI/refit/main.c
  28. #cp rEFIt_UEFI/refit/main.c ~/Desktop/
  29. #./ebuild.sh -mc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement