commit 16f25a85
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