:: commit 1b7bcbe704a01e8fce5950ea51fe12dc429ca696

mintsuki <mintsuki@protonmail.com> — 2024-01-07 02:26

parents: 1ed5d9fe06

build: bootstrap: Remove stb_image.h.orig should it be generated

diff --git a/bootstrap b/bootstrap
index f535126d..f953724e 100755
--- a/bootstrap
+++ b/bootstrap
@@ -12,7 +12,12 @@ if [ -z "$BOOTSTRAP_NO_SHALLOW_CLONES" ]; then
 fi
 
 [ -d common/flanterm ] || git clone https://github.com/mintsuki/flanterm.git common/flanterm $SHALLOW_CLONE_FLAG
-[ -f common/stb/stb_image.h ] || ( curl -Lo common/stb/stb_image.h https://github.com/nothings/stb/raw/master/stb_image.h && patch -p0 < common/stb_image.patch )
+[ -f common/stb/stb_image.h ] || (
+    set -e
+    curl -Lo common/stb/stb_image.h https://github.com/nothings/stb/raw/master/stb_image.h
+    patch -p0 < common/stb_image.patch
+    rm -f common/stb/stb_image.h.orig
+)
 [ -d decompressor/tinf ] || (
     set -e
     mkdir -p decompressor/tinf
tab: 248 wrap: offon