2016-11-11 04:07:08 +09:00
|
|
|
#!/usr/bin/env bash
|
2013-08-30 00:03:02 +09:00
|
|
|
|
2016-07-16 00:14:59 +09:00
|
|
|
# This script updates GPL part of official .paks to match the latest git version.
|
|
|
|
|
2016-11-10 20:37:01 +09:00
|
|
|
rm -f pak002-Base.pak pak005-Models.pak pak010-BaseSkin.pak pak050-Locales.pak pak999-References.pak
|
|
|
|
|
|
|
|
OUTPUT_DIR="`pwd`"
|
|
|
|
SRC_DIR="`dirname "$0"`"
|
|
|
|
LOG_FILE="/dev/null"
|
|
|
|
|
2016-11-11 04:07:08 +09:00
|
|
|
if [ ! "$MKPAK_LOG_FILE" = "" ]; then
|
2016-11-10 20:37:01 +09:00
|
|
|
LOG_FILE="$MKPAK_LOG_FILE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pushd "$SRC_DIR"
|
|
|
|
|
2014-01-01 01:48:31 +09:00
|
|
|
EXCLUDELIST=/tmp/mkpak.exclude.txt
|
|
|
|
find . | grep _Assets_ > $EXCLUDELIST
|
|
|
|
file . | grep ".DS_Store" >> $EXCLUDELIST
|
|
|
|
ZIPARGS=-x@${EXCLUDELIST}
|
|
|
|
|
2016-11-10 20:37:01 +09:00
|
|
|
zip -r "$OUTPUT_DIR/pak002-Base.pak" \
|
2016-07-16 00:14:59 +09:00
|
|
|
License/Credits-pak002-Base.md Gfx Scripts/Main.as \
|
|
|
|
Scripts/Gui Scripts/Base Shaders \
|
2016-11-10 20:37:01 +09:00
|
|
|
Sounds/Feedback Sounds/Misc Sounds/Player Textures $ZIPARGS > "$LOG_FILE"
|
2013-12-30 16:18:52 +09:00
|
|
|
|
2019-05-25 14:30:34 +09:00
|
|
|
zip -r "$OUTPUT_DIR/pak005-Models.pak" Maps Models/MapObjects Models/Player $ZIPARGS > "$LOG_FILE"
|
2013-11-01 00:38:42 +09:00
|
|
|
|
2019-05-24 17:28:38 +03:00
|
|
|
zip -r "$OUTPUT_DIR/pak010-BaseSkin.pak" \
|
2016-07-16 00:14:59 +09:00
|
|
|
License/Credits-pak010-BaseSkin.md \
|
2019-05-24 17:28:38 +03:00
|
|
|
Scripts/Skin Sounds/Weapons Models/Weapons Models/MapObjects $ZIPARGS > "$LOG_FILE"
|
2016-11-10 20:37:01 +09:00
|
|
|
|
|
|
|
zip -r "$OUTPUT_DIR/pak050-Locales.pak" License/Credits-pak050-Locales.md Locales $ZIPARGS > "$LOG_FILE"
|
2013-11-01 00:38:42 +09:00
|
|
|
|
2016-11-10 20:37:01 +09:00
|
|
|
zip -r "$OUTPUT_DIR/pak999-References.pak" License/Credits-pak999-References.md Scripts/Reference $ZIPARGS > "$LOG_FILE"
|
2013-08-30 00:03:02 +09:00
|
|
|
|
2016-11-10 20:37:01 +09:00
|
|
|
popd
|