getbucts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/bash
  2. # getbucts script: downloads bucts and patches it
  3. #
  4. # Copyright (C) 2014 Francis Rowe
  5. #
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. #
  19. # Get bucts and checkout last revision used
  20. # Remove the old version that may exist
  21. # -----------------------------------------------------------
  22. echo "DOWNLOADING BUCTS"
  23. rm -rf bucts
  24. # Get bucts
  25. # -----------------------------------------------------------
  26. # download it using git
  27. git clone git://git.stuge.se/bucts.git
  28. # modifications are required
  29. cd bucts
  30. # Reset to the last commit that was tested
  31. # -----------------------------------------------------------
  32. git reset --hard dc27919d7a66a6e8685ce07c71aefa4f03ef7c07
  33. # no patches required
  34. # We don't need .git* (please submit all upstreamable changes directly to bucts upstream)
  35. # removing them, to reduce the size of the archive
  36. rm -rf .git
  37. rm -rf .gitignore
  38. # we're done
  39. cd ../
  40. echo "BUCTS DOWNLOAD COMPLETE"
  41. # ------------------- DONE ----------------------