Changeset 4653242 for git-version.sh
- Timestamp:
- 01/25/2023 02:12:13 AM (15 months ago)
- Branches:
- 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
- Children:
- e3047fd
- Parents:
- 05d5b11
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
git-version.sh
r05d5b11 r4653242 11 11 exit 1 12 12 fi 13 14 shift 1 13 15 14 16 echo "<!ENTITY % sysv \"$SYSV\">" > conditional.ent … … 28 30 export TZ=America/Chicago 29 31 30 commit_date=$(git show -s --format=format:"%cd" --date=local) 32 sha=$(git log -s --format=format:"%H" --date=local -1 $*) 33 commit_date=$(git log -s --format=format:"%cd" --date=local -1 $*) 31 34 short_date=$(date --date "$commit_date" "+%Y-%m-%d") 32 35 … … 45 48 full_date="$month $day$suffix, $year" 46 49 47 sha="$(git describe --abbrev=1 )"50 sha="$(git describe --abbrev=1 $sha)" 48 51 version=$(echo "$sha" | sed 's/-g[^-]*$//') 49 50 if [ "$(git diff HEAD | wc -l)" != "0" ]; then51 version="$version+"52 fi53 52 54 53 echo "<!ENTITY year \"$year\">" > version.ent
Note:
See TracChangeset
for help on using the changeset viewer.