diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-04-11 21:11:11 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-04-11 21:11:11 -0700 |
commit | fc7a27975b285ac3a5ca87f98a6f9fb943fe576a (patch) | |
tree | fb7449e8c1a4faa4b9b2c94f027fee970b142be9 /scripts | |
parent | f82d9d2f598968992c44062861544f6c7980952d (diff) |
Made build easier
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get-prebuilt.sh | 18 | ||||
-rwxr-xr-x | scripts/prepare-ios.sh | 2 | ||||
-rwxr-xr-x | scripts/prepare-mac.sh | 2 | ||||
-rwxr-xr-x | scripts/prepare.sh | 15 |
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 |