Form the short commit hash with only shell builtins

[skip changelog]
epel9
Benjamin A. Beasley 2 years ago
parent 3bd9cb4727
commit 699eb0e31a

@ -27,7 +27,7 @@ Name: gn
# See https://gn.googlesource.com/gn/+log for the latest changes.
%global commit e0afadf7a743d5b14737bd454df45d5f1caf0d23
%global access 20211205
%global shortcommit %(echo %{commit} | cut -b -8)
%global shortcommit %(c='%{commit}'; echo "${c:0:8}")
Version: 1953
Release: %autorelease -s %{access}git%{shortcommit}
Summary: Meta-build system that generates build files for Ninja

Loading…
Cancel
Save