File: set_version.sh

package info (click to toggle)
pyocd 0.37.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 355,132 kB
  • sloc: xml: 3,682,260; python: 61,563; ansic: 112; makefile: 87; asm: 25; sh: 14
file content (11 lines) | stat: -rwxr-xr-x 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
# Fill the version with the current commit number to simplify local debug

FULL_SCRIPT_PATH="$(pwd)/${0}"
PROJECT_DIR="${FULL_SCRIPT_PATH%/scripts/*}"
cd "${PROJECT_DIR}"

echo "version = '$(git describe --long --always)'" > pyocd/_version.py

# Now you can run the following command inside of $PROJECT_DIR
# python3.8 -m pyocd --version