freedombone-image-vmdebootstrap 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/sh
  2. #
  3. # .---. . .
  4. # | | |
  5. # |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.
  6. # | | (.-' (.-' ( | ( )| | | | )( )| | (.-'
  7. # ' ' --' --' -' - -' ' ' -' -' -' ' - --'
  8. #
  9. # Freedom in the Cloud
  10. #
  11. # Apply patches to vmdebootstrap. Based on a script from freedom-maker
  12. #
  13. # License
  14. # =======
  15. #
  16. # This program is free software: you can redistribute it and/or modify
  17. # it under the terms of the GNU General Public License as published by
  18. # the Free Software Foundation, either version 3 of the License, or
  19. # (at your option) any later version.
  20. #
  21. # This program is distributed in the hope that it will be useful,
  22. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. # GNU General Public License for more details.
  25. #
  26. # You should have received a copy of the GNU General Public License
  27. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  28. PROJECT_NAME='freedombone'
  29. export TEXTDOMAIN=${PROJECT_NAME}-image-vmdebootstrap
  30. export TEXTDOMAINDIR="/usr/share/locale"
  31. mkdir -p vendor
  32. if [ -d vendor/vmdebootstrap ] ; then
  33. (cd vendor/vmdebootstrap; git checkout .; git pull)
  34. else
  35. git clone git://git.liw.fi/vmdebootstrap vendor/vmdebootstrap
  36. fi
  37. cd vendor/vmdebootstrap
  38. git checkout tags/vmdebootstrap-0.8
  39. for f in ../../vendor-patches/vmdebootstrap/* ; do
  40. echo applying $(basename $f)
  41. patch -p1 < $f
  42. done