Move update_version.sh to contrib/

Change-Id: I26218cd512a739fc26ba04be05f01260152d785f
changes/17/18217/2
Pau Espin 3 years ago
parent 1337fb8e48
commit 656952760c
  1. 2
      .gitignore
  2. 2
      Makefile
  3. 9
      contrib/update_version.sh

2
.gitignore vendored

@ -1,7 +1,7 @@
__pycache__
pid
.*.sw?
version
.version
_version.py
tags
set_pythonpath

@ -6,7 +6,7 @@ deps:
./contrib/check_dependencies.py
version:
./update_version.sh
./contrib/update_version.sh
manual:
$(MAKE) -C doc/manuals

@ -1,10 +1,11 @@
#!/bin/sh
set -e
git describe --abbrev=8 --dirty | sed 's/v\([^-]*\)-\([^-]*\)-\(.*\)/\1.dev\2.\3/' > version
cat version
ROOTDIR=$(git rev-parse --show-toplevel)
git describe --abbrev=8 --dirty | sed 's/v\([^-]*\)-\([^-]*\)-\(.*\)/\1.dev\2.\3/' > $ROOTDIR/.version
cat $ROOTDIR/.version
echo "# osmo-gsm-tester version.
# Automatically generated by update_version.sh.
# Gets imported by __init__.py.
_version = '$(cat version)'" \
> src/osmo_gsm_tester/_version.py
_version = '$(cat $ROOTDIR/.version)'" \
> $ROOTDIR/src/osmo_gsm_tester/_version.py
Loading…
Cancel
Save