1 Star 0 Fork 18

src-openeuler-xia/gimp

forked from src-openEuler/gimp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
git_info_from_dirname.patch 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
chen-jan 提交于 2021-09-03 01:05 . update gimp to 2.99.6
diff --git a/Makefile.am b/Makefile.am
index 5321a0c7d5..e6b16a66e6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -142,16 +142,10 @@ CLEANFILES = $(generated_sources)
# already exists because then we are probably working with a tarball
# in which case the git-version.h we ship is correct.
git-version.h: update-git-version-header
- @if test -e "$(top_srcdir)/.git"; then \
- git_version="`git --git-dir=$(top_srcdir)/.git describe --always`"; \
- git_version_abbrev="`git --git-dir=$(top_srcdir)/.git rev-parse --short HEAD`"; \
- git_last_commit_year="`git --git-dir=$(top_srcdir)/.git log -n1 --reverse --pretty=%ci | cut -b 1-4`"; \
- elif test ! -f "$@"; then \
- git_version="Unknown, shouldn't happen"; \
- git_version_abbrev="$$git_version"; \
- git_last_commit_timestamp=-1; \
- git_last_commit_year="`date -u '+%Y'`"; \
- fi; \
+ git_version="`basename \`pwd\`` (OBS AppImage)"; \
+ git_version_abbrev="`basename \`pwd\` | sed 's,gimp-\(.*\)+git\(.*\)\.\(.*\),\3,g'`"; \
+ git_last_commit_year="`date -u '+%Y'`"; \
+ git_last_commit_timestamp=-1; \
if test -n "$$git_version"; then \
echo "#ifndef __GIT_VERSION_H__" > "$@.tmp"; \
echo "#define __GIT_VERSION_H__" >> "$@.tmp"; \
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler-xia/gimp.git
git@gitee.com:src-openeuler-xia/gimp.git
src-openeuler-xia
gimp
gimp
master

搜索帮助