1 Star 2 Fork 0

LibQQt应用程序开发组织/Multi-building Technology (PyAutoMake)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pyautomake.sh 676 Bytes
一键复制 编辑 原始数据 按行查看 历史
tianduanrui 提交于 2021-06-05 12:51 +08:00 . update *.sh
#!/usr/bin/env bash
while [ 1 ]
do
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null && pwd )"
#echo .... $DIR
export PYPROGRAMPATH=${DIR}
export PYPROGRAMNAME=pyautomake.py
export PYPROGRAMPATHNAME=$PYPROGRAMPATH/$PYPROGRAMNAME
py=$(which python3)
${py} "$PYPROGRAMPATHNAME" "$@"
exit $?
break
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/drabel/PyAutoMake.git
git@gitee.com:drabel/PyAutoMake.git
drabel
PyAutoMake
Multi-building Technology (PyAutoMake)
master

搜索帮助