SDL_image: Make sure touch-autofoo.sh touches files in the correct directory (c6ff0)

From c6ff0e98200ebcc091567677bdc439b61672caef Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 1 Jan 2025 10:59:59 -0800
Subject: [PATCH] Make sure touch-autofoo.sh touches files in the correct
 directory

(cherry picked from commit c3ac0fb26d840f37ff0a393764a189a29d7c6278)
---
 build-scripts/touch-autofoo.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build-scripts/touch-autofoo.sh b/build-scripts/touch-autofoo.sh
index 7f87f6d2b..5f1219206 100755
--- a/build-scripts/touch-autofoo.sh
+++ b/build-scripts/touch-autofoo.sh
@@ -4,4 +4,5 @@
 # autotools generated files, so that the build procedure
 # doesn't attempt to regenerate them.
 
+cd `dirname $0`
 touch aclocal.m4 configure Makefile.in test/Makefile.in