aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/get-prebuilt.sh
blob: 75eccb450c18ea744f64193fedfd421f5955f24d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 --depth=1 https://github.com/MailCore/mailcore2-deps.git
    fi
    cp mailcore2-deps/*.zip ../builds/builds
    popd
  fi
fi