Changeset 803a28b2
- Timestamp:
- 05/01/2021 10:10:38 PM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- bfee8ec
- Parents:
- 88bdbb7 (diff), 6ca780c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
git-version.sh
r88bdbb7 r803a28b2 15 15 16 16 commit_date=$(git show -s --format=format:"%cd" --date=local) 17 short_date=$(date --date "$commit_date" "+%Y%m%d")18 17 19 18 year=$(date --date "$commit_date" "+%Y") … … 31 30 full_date="$month $day$suffix, $year" 32 31 33 sha="g$(git describe --always)" 34 version="GIT-$short_date-$sha" 35 versiond="GIT-$short_date-$sha-systemd" 32 sha="$(git describe --abbrev=1)" 33 if git describe --all --match trunk > /dev/null 2> /dev/null; then 34 sha=$(echo "$sha" | sed 's/-g[^-]*$//') 35 fi 36 version="$sha" 37 versiond="$sha-systemd" 36 38 37 39 if [ "$(git diff HEAD | wc -l)" != "0" ]; then 38 version="$version -MODIFIED"39 versiond="$versiond -MODIFIED"40 version="$version+" 41 versiond="$versiond+" 40 42 fi 41 43
Note:
See TracChangeset
for help on using the changeset viewer.