Projects
Eulaceura:Factory
gimp
_service:obs_scm:git_info_from_dirname.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:git_info_from_dirname.patch of Package gimp
diff --git a/Makefile.am b/Makefile.am index 5321a0c7d5..e6b16a66e6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -141,16 +141,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"; \
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2