#!/bin/bash ver=$1 cgcommit=`git -C unvanquished rev-parse HEAD` ascommit=`git -C unvanquished_src.dpkdir rev-parse HEAD` mkdir "tmpcg" mkdir "tmpas" cp "unvanquished/build/cgame-x86-stripped.nexe" "tmpcg/cgame-x86.nexe" cp "unvanquished/build/cgame-x86_64-stripped.nexe" "tmpcg/cgame-x86_64.nexe" cp -r "unvanquished_src.dpkdir/ui" "./tmpas" cp -r "unvanquished_src.dpkdir/configs" "./tmpcg" rm mod-bunker*.dpk cat <> info.txt Der Bunker $ver, modifications by cu-kai - source code available at: https://github.com/cu-kai/unvanquished/tree/cu-kai/gameplay https://github.com/cu-kai/unvanquished_src.dpkdir/tree/cu-kai/gameplay cgame commit: $cgcommit asset commit: $ascommit website: https://zittrig.eu EOT cp "DEPS" "tmpcg" cp "info.txt" "tmpas" echo "NOTE: should be used with mod-bunker_$ver.dpk" >> "tmpas/info.txt" mv "info.txt" "tmpcg" cd "tmpcg" zip -r "../mod-bunker_$ver.dpk" ./* cd .. cd "tmpas" zip -r "../mod-bunker-assets_$ver.dpk" ./* cd .. rm -rf tmp*