From: Spike29 <leguen.yannick@gmail.com>
Date: Fri, 16 Jun 2023 13:32:44 +0000 (+0200)
Subject: mappingsupport: don't include minimaps and empty scripts and sound directories
X-Git-Tag: xonotic-v0.8.6~2^2
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e97d0c1514999124c80305330797b624eaabe9cf;p=xonotic%2Fxonotic.git

mappingsupport: don't include minimaps and empty scripts and sound directories
---

diff --git a/misc/tools/all/release.subr b/misc/tools/all/release.subr
index fb21b412..9242619c 100644
--- a/misc/tools/all/release.subr
+++ b/misc/tools/all/release.subr
@@ -403,8 +403,8 @@ case "$cmd" in
 		release_common
 		dir=$1
 		verbose cd "$dir"
-		# don't include lightmaps and levelshots from official map builds
-		rm -rf maps
+		# don't include levelshots, lightmaps and minimaps from official map builds, as well as other unneeded folders
+		rm -rf gfx maps scripts sound
 		# remove stuff radiant has no use for
 		verbose find . -name \*_norm.\* -exec rm -f {} \;
 		verbose find . -name \*_bump.\* -exec rm -f {} \;