Changeset e3047fd for git-version.sh


Ignore:
Timestamp:
01/25/2023 12:01:41 PM (15 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
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
Message:

Restore the render system to what it was before pythonhosted changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • git-version.sh

    r4653242 re3047fd  
    1111    exit 1
    1212fi
    13 
    14 shift 1
    1513
    1614echo "<!ENTITY % sysv    \"$SYSV\">"     >  conditional.ent
     
    3028export TZ=America/Chicago
    3129
    32 sha=$(git log -s --format=format:"%H" --date=local -1 $*)
    33 commit_date=$(git log -s --format=format:"%cd" --date=local -1 $*)
     30commit_date=$(git show -s --format=format:"%cd" --date=local)
    3431short_date=$(date --date "$commit_date" "+%Y-%m-%d")
    3532
     
    4845full_date="$month $day$suffix, $year"
    4946
    50 sha="$(git describe --abbrev=1 $sha)"
     47sha="$(git describe --abbrev=1)"
    5148version=$(echo "$sha" | sed 's/-g[^-]*$//')
     49
     50if [ "$(git diff HEAD | wc -l)" != "0" ]; then
     51    version="$version+"
     52fi
    5253
    5354echo "<!ENTITY year              \"$year\">"               >  version.ent
Note: See TracChangeset for help on using the changeset viewer.