File: version.sh

package info (click to toggle)
python-fissix 24.4.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,156 kB
  • sloc: python: 16,578; sh: 56; makefile: 48
file content (9 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/bin/bash

set -e

export VERSION=$(awk -F '"' '/define PY_VERSION /{print $2}' cpython/Include/patchlevel.h)
perl -i -p -e "s/__base_version__ = \".*\"/__base_version__ = \"$VERSION\"/" fissix/__init__.py

export VERSION=$(git -C cpython describe)
perl -i -p -e "s/__base_revision__ = \".*\"/__base_revision__ = \"$VERSION\"/" fissix/__init__.py