aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-04-11 21:11:11 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-04-11 21:11:11 -0700
commitfc7a27975b285ac3a5ca87f98a6f9fb943fe576a (patch)
treefb7449e8c1a4faa4b9b2c94f027fee970b142be9 /scripts
parentf82d9d2f598968992c44062861544f6c7980952d (diff)
Made build easier
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get-prebuilt.sh18
-rwxr-xr-xscripts/prepare-ios.sh2
-rwxr-xr-xscripts/prepare-mac.sh2
-rwxr-xr-xscripts/prepare.sh15
4 files changed, 22 insertions, 15 deletions
diff --git a/scripts/get-prebuilt.sh b/scripts/get-prebuilt.sh
new file mode 100755
index 00000000..4545e33c
--- /dev/null
+++ b/scripts/get-prebuilt.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+if test x$1 != xskipprebuilt ; then
+ if test ! -d ../Externals/prebuilt ; then
+ mkdir -p ../Externals/builds/builds
+ mkdir -p ../Externals/prebuilt
+ pushd ../Externals/prebuilt
+ if test -d mailcore2-deps ; then
+ cd mailcore2-deps
+ git pull --rebase
+ cd ..
+ else
+ git clone https://github.com/dinhviethoa/mailcore2-deps.git
+ fi
+ cp mailcore2-deps/*.zip ../builds/builds
+ popd
+ fi
+fi
diff --git a/scripts/prepare-ios.sh b/scripts/prepare-ios.sh
index 5e4b08e6..44ccb2e0 100755
--- a/scripts/prepare-ios.sh
+++ b/scripts/prepare-ios.sh
@@ -1,4 +1,6 @@
#!/bin/sh
+./get-prebuilt.sh
+
if test ! -d ../Externals/tidy-html5-ios ; then
./prepare-tidy-ios.sh
fi
diff --git a/scripts/prepare-mac.sh b/scripts/prepare-mac.sh
index 80a44c1a..f29dfa04 100755
--- a/scripts/prepare-mac.sh
+++ b/scripts/prepare-mac.sh
@@ -1,4 +1,6 @@
#!/bin/sh
+./get-prebuilt.sh
+
if test ! -d ../Externals/icu4c ; then
./prepare-icu4c-macos.sh
fi
diff --git a/scripts/prepare.sh b/scripts/prepare.sh
index e2617230..9b76ec12 100755
--- a/scripts/prepare.sh
+++ b/scripts/prepare.sh
@@ -1,19 +1,4 @@
#!/bin/sh
-if test x$1 != xskipprebuilt ; then
- mkdir -p ../Externals/builds/builds
- mkdir -p ../Externals/prebuilt
- pushd ../Externals/prebuilt
- if test -d mailcore2-deps ; then
- cd mailcore2-deps
- git pull --rebase
- cd ..
- else
- git clone https://github.com/dinhviethoa/mailcore2-deps.git
- fi
- cp mailcore2-deps/*.zip ../builds/builds
- popd
-fi
-
./prepare-mac.sh
./prepare-ios.sh