ro-webgl/Build/BuildTools/autobuild.sh

24 lines
589 B
Bash
Raw Permalink Normal View History

2021-12-21 09:40:39 +08:00
#!/bin/sh
#工程目录#
PROJECT_PATH=`cd $(dirname $0)/../..;pwd`
cd $PROJECT_PATH
exec_packtool()
{
PY_VERSION=`python -V 2>&1|awk '{print $2}'|awk -F '.' '{print $1}'`
if [ $? -gt 0 ]; then
echo "未检测到python, 请检查python环境"
exit 1
fi
if [ $PY_VERSION != 2 ]; then
echo "暂时支持python 2环境 当前python为 "$PY_VERSION
exit 1
fi
python ./Build/BuildTools/PackTools/PackTools.py "${1}" "${2}" "${3}" "${4}" "${5}" "${6}" "${7}" "${8}" "${9}"
}
exec_packtool "${1}" "${2}" "${3}" "${4}" "${5}" "${6}" "${7}" "${8}" "${9}"