Changeset e3047fd for git-version.sh
- Timestamp:
- 01/25/2023 12:01:41 PM (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:
- 2c0a093
- Parents:
- 4653242
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
git-version.sh
r4653242 re3047fd 11 11 exit 1 12 12 fi 13 14 shift 115 13 16 14 echo "<!ENTITY % sysv \"$SYSV\">" > conditional.ent … … 30 28 export TZ=America/Chicago 31 29 32 sha=$(git log -s --format=format:"%H" --date=local -1 $*) 33 commit_date=$(git log -s --format=format:"%cd" --date=local -1 $*) 30 commit_date=$(git show -s --format=format:"%cd" --date=local) 34 31 short_date=$(date --date "$commit_date" "+%Y-%m-%d") 35 32 … … 48 45 full_date="$month $day$suffix, $year" 49 46 50 sha="$(git describe --abbrev=1 $sha)"47 sha="$(git describe --abbrev=1)" 51 48 version=$(echo "$sha" | sed 's/-g[^-]*$//') 49 50 if [ "$(git diff HEAD | wc -l)" != "0" ]; then 51 version="$version+" 52 fi 52 53 53 54 echo "<!ENTITY year \"$year\">" > version.ent
Note:
See TracChangeset
for help on using the changeset viewer.