Skip to content
Snippets Groups Projects
Forked from tome / Tales of MajEyal
11615 commits behind the upstream repository.
te4_pack_engine.sh 353 B
#!/bin/bash

if test $# -lt 2 ; then
	echo "Usage: te4_pack_engine.sh [default/] [te4-5_0.9.14]"
	exit
fi

version="$2"
dir="$1"

cp -a "$dir" tmp
find tmp -name .svn -or -name '*~' | xargs rm -rf

cd tmp

cd modules
te4_pack_module.sh boot "$version"
mv boot-"$version".team ../../
cd ..
rm -rf modules

zip -r -0 ../"$version".teae *
cd ..
rm -rf tmp