download 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/bin/bash
  2. # download is part of qorgboot.
  3. # qorgboot is free software: you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation, either version 3 of the License, or
  6. # (at your option) any later version.
  7. # qorgboot is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. # You should have received a copy of the GNU General Public License
  12. # along with qorgboot. If not, see <https://www.gnu.org/licenses/>.
  13. if [ -z "$1" ]
  14. then
  15. echo "download";
  16. echo "$0 all -- Download everything"
  17. echo "$0 flashrom -- Download flashrom"
  18. echo "$0 coreboot -- Download coreboot";
  19. exit;
  20. fi
  21. if test -f "/usr/bin/git"; then
  22. if [ "$1" = 'flashrom' ];
  23. then
  24. git clone https://review.coreboot.org/flashrom.git srcs/flashrom
  25. echo "Flashrom downloaded";
  26. fi
  27. if [ "$1" = "all" ];
  28. then
  29. git clone https://review.coreboot.org/coreboot.git srcs/coreboot --depth=4
  30. git clone https://review.coreboot.org/flashrom srcs/flashrom
  31. git clone https://notabug.org/qorg11/ich9gen srcs/ich9gen
  32. fi
  33. if [ "$1" = "coreboot" ];
  34. then
  35. git clone https://review.coreboot.org/coreboot.git srcs/coreboot --depth=4
  36. fi
  37. if [ "$1" = "ich9gen" ];
  38. then
  39. git clone https://notabug.org/qorg11/ich9gen srcs/ich9gen
  40. fi
  41. else
  42. echo "Install git."
  43. exit;
  44. fi