1 Star 1 Fork 1

HuanZeng/texstudio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
git_revision.sh 846 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
# this script is executed as part of the build process. Call specified in texstudio.pro
QMAKE_CXX=$1
BUILD_DIR=$2
PRO_DIR=$3
export PATH=$PATH:/usr/local/bin # standard path for hg installation on OSX. May not be on PATH when called from a GUI application (e.g. QtCreator)
version=$(git describe --tags)
# write new file if we have version information or if the file does not exist at all.
# ensures a file exists and that it is updated if new version information is available.
# We don't overwrite an existing file with missing version information. This is the
# case e.g. when compiling from the tar ball.
if [ -n "$version" ] || [ ! -f git_revision.cpp ]; then
echo "const char * TEXSTUDIO_GIT_REVISION = \"$version\";" > $PRO_DIR/src/git_revision.cpp
fi
$QMAKE_CXX -c $PRO_DIR/src/git_revision.cpp -o $BUILD_DIR/git_revision.o
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xmrzh/texstudio.git
git@gitee.com:xmrzh/texstudio.git
xmrzh
texstudio
texstudio
master

搜索帮助