summaryrefslogtreecommitdiff
path: root/refetch_deps.sh
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-26 01:32:41 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-26 01:32:41 +0200
commit3b72a03fe29db6037a23635639843f38450c16e5 (patch)
treef4c7e3ee4d9e5a766350d7ffbd88985b3b6bbde2 /refetch_deps.sh
parentbaf492d2a83533114275b1f8f3576c94bb3e5bc0 (diff)
downloadsaw-3b72a03fe29db6037a23635639843f38450c16e5.zip
Build: Faster recompilation
Diffstat (limited to 'refetch_deps.sh')
-rw-r--r--refetch_deps.sh52
1 files changed, 23 insertions, 29 deletions
diff --git a/refetch_deps.sh b/refetch_deps.sh
index 19be044..d3081b2 100644
--- a/refetch_deps.sh
+++ b/refetch_deps.sh
@@ -1,44 +1,38 @@
-if [ -d "./source/kit" ]; then
- rm -rf "./source/kit"
+if [ -d "source/kit" ]; then
+ rm -rf "source/kit"
fi
-
-if [ -d "./source/stb" ]; then
- rm -rf "./source/stb"
+if [ -d "source/stb" ]; then
+ rm -rf "source/stb"
fi
-
-if [ -f "./source/thirdparty/miniaudio.h" ]; then
- rm -rf "./source/thirdparty/miniaudio.h"
+if [ -f "source/thirdparty/miniaudio.h" ]; then
+ rm -rf "source/thirdparty/miniaudio.h"
fi
-
-if [ -d "./_tmp_kit" ]; then
- rm -rf "./_tmp_kit"
+if [ -d "_tmp_kit" ]; then
+ rm -rf "_tmp_kit"
fi
-
-if [ -d "./_tmp_stb" ]; then
- rm -rf "./_tmp_stb"
+if [ -d "_tmp_stb" ]; then
+ rm -rf "_tmp_stb"
fi
-
-if [ -d "./_tmp_miniaudio" ]; then
- rm -rf "./_tmp_miniaudio"
+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"
+if [ ! -d "source/stb" ]; then
+ mkdir "source/stb"
fi
-
-if [ ! -d "./source/thirdparty" ]; then
- mkdir "./source/thirdparty"
+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"
+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"
+rm -rf "_tmp_kit"
+rm -rf "_tmp_stb"
+rm -rf "_tmp_miniaudio"