Changes in / [88bdbb7:803a28b2]
- 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.