38 lines
1.2 KiB
Bash
Raw Normal View History

2016-11-11 04:07:08 +09:00
#!/usr/bin/env bash
2016-07-16 00:14:59 +09:00
# This script updates GPL part of official .paks to match the latest git version.
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
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}
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 \
Sounds/Feedback Sounds/Misc Sounds/Player Textures $ZIPARGS > "$LOG_FILE"
2013-12-30 16:18:52 +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
zip -r "$OUTPUT_DIR/pak010-BaseSkin."pak \
2016-07-16 00:14:59 +09:00
License/Credits-pak010-BaseSkin.md \
Scripts/Skin Sounds/Weapons Models/Weapons $ZIPARGS > "$LOG_FILE"
zip -r "$OUTPUT_DIR/pak050-Locales.pak" License/Credits-pak050-Locales.md Locales $ZIPARGS > "$LOG_FILE"
2013-11-01 00:38:42 +09:00
zip -r "$OUTPUT_DIR/pak999-References.pak" License/Credits-pak999-References.md Scripts/Reference $ZIPARGS > "$LOG_FILE"
popd