|
@@ -0,0 +1,27 @@
|
|
1
|
+#!/bin/sh
|
|
2
|
+#
|
|
3
|
+# This program 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
|
+#
|
|
8
|
+# This program is distributed in the hope that it will be useful,
|
|
9
|
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
+# GNU General Public License for more details.
|
|
12
|
+#
|
|
13
|
+# You should have received a copy of the GNU General Public License
|
|
14
|
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
15
|
+
|
|
16
|
+mkdir -p vendor
|
|
17
|
+if [ -d vendor/vmdebootstrap ] ; then
|
|
18
|
+ (cd vendor/vmdebootstrap; git checkout .; git pull)
|
|
19
|
+else
|
|
20
|
+ git clone git://git.liw.fi/vmdebootstrap vendor/vmdebootstrap
|
|
21
|
+fi
|
|
22
|
+cd vendor/vmdebootstrap
|
|
23
|
+git checkout tags/vmdebootstrap-0.8
|
|
24
|
+for f in ../../vendor-patches/vmdebootstrap/* ; do
|
|
25
|
+ echo applying $(basename $f)
|
|
26
|
+ patch -p1 < $f
|
|
27
|
+done
|