git repos / blockattack-game

commit 16f25a85

Poul Sander · 2026-08-04 07:55
16f25a8515afaa9c6b3ee497f813ba4fc4e1a5d4 patch · browse files
parent 727f4a095b4b10d630e54a3ea673343725bd7186

Add a BLOCKATTACK_RESET_PERMISSIONS option to the packdata.sh script. Allows resetting all permissions of files packaged.

Changed files

M packdata.sh before
diff --git a/packdata.sh b/packdata.sh index defe92c..ed3b49e 100755 --- a/packdata.sh +++ b/packdata.sh
@@ -3,6 +3,10 @@ set -e
export LC_ALL=C
export TZ=UTC
zip -9ojX Game/blockattack.data source/AUTH
+if [ "$BLOCKATTACK_RESET_PERMISSIONS" = "1" ]; then
+ find Game/data -type f -exec chmod 644 {} +
+ find Game/data -type d -exec chmod 755 {} +
+fi
pushd Game/data
zip -9oX $(find ../blockattack.data ./* | sort) -x \*svn*
popd
@@ -15,5 +19,5 @@ popd
pushd source/misc/translation/
./build_mo_all.sh
popd
-
+chmod 644 Game/blockattack.data
exit 0