summaryrefslogtreecommitdiff
path: root/refetch_deps.sh
blob: d3081b2bd0c82fbc60c48b72c131f23173d0781a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
if [ -d   "source/kit"  ]; then
  rm -rf  "source/kit"
fi
if [ -d   "source/stb"  ]; then
  rm -rf  "source/stb"
fi
if [ -f   "source/thirdparty/miniaudio.h"  ]; then
  rm -rf  "source/thirdparty/miniaudio.h"
fi
if [ -d   "_tmp_kit"  ]; then
  rm -rf  "_tmp_kit"
fi
if [ -d   "_tmp_stb"  ]; then
  rm -rf  "_tmp_stb"
fi
if [ -d   "_tmp_miniaudio"  ]; then
  rm -rf  "_tmp_miniaudio"
fi

git clone --quiet --depth 1 https://guattari.tech/kit.git             _tmp_kit
git clone --quiet --depth 1 https://github.com/nothings/stb.git       _tmp_stb
git clone --quiet --depth 1 https://github.com/mackron/miniaudio.git  _tmp_miniaudio

if [ ! -d "source/stb" ]; then
  mkdir   "source/stb"
fi
if [ ! -d "source/thirdparty" ]; then
  mkdir   "source/thirdparty"
fi

mv "_tmp_kit/source/kit"        "source/kit"
mv "_tmp_stb/stb_image.h"       "source/stb/stb_image.h"
mv "_tmp_stb/stb_truetype.h"    "source/stb/stb_truetype.h"
mv "_tmp_miniaudio/miniaudio.h" "source/thirdparty/miniaudio.h"

rm -rf "_tmp_kit"
rm -rf "_tmp_stb"
rm -rf "_tmp_miniaudio"