:: commit 9e193706897157575c9c804eecbb8e1c80b9603d

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

parents: 7f72a7ca32

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

diff --git a/bootstrap b/bootstrap
index 26313d37..00ff834b 100755
--- a/bootstrap
+++ b/bootstrap
@@ -21,7 +21,12 @@ fi
     find common/libfdt/ -type f -not -name '*.c' -not -name '*.h' -delete
     patch -p1 < common/libfdt.patch
 )
-[ -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