aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis-build.sh4
-rwxr-xr-xscripts/version.py25
2 files changed, 4 insertions, 25 deletions
diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh
index 9639d88..2bfc4d2 100755
--- a/scripts/travis-build.sh
+++ b/scripts/travis-build.sh
@@ -3,6 +3,8 @@
set -e
set -u
+ROOT=$(pwd)
+
make
make clean
@@ -16,3 +18,5 @@ $HOME/.local/bin/meson . meson-build
cd meson-build
ninja
cd ..
+
+${ROOT}/scripts/version.sh check
diff --git a/scripts/version.py b/scripts/version.py
deleted file mode 100755
index 892dbdb..0000000
--- a/scripts/version.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python3
-#
-# tinyalsa version.py: Extracts versions from TINYALSA_VERSION_STRING in
-# include/tinyalsa/version.h header file for Meson build.
-import os
-import sys
-
-if __name__ == '__main__':
- try:
- srcroot = os.environ['MESON_SOURCE_ROOT']
- except:
- srcroot = os.getcwd()
- print('Warning: MESON_SOURCE_ROOT env var not set, assuming source code is in', srcroot, file=sys.stderr)
-
- # API version
- api_version = None
- f = open(os.path.join(srcroot, 'include', 'tinyalsa', 'version.h'), 'r')
- for line in f:
- if line.startswith('#define TINYALSA_VERSION_STRING '):
- api_version = line[32:].strip().replace('"', '')
- print(api_version)
- sys.exit(0)
-
- print('Warning: Could not extract API version from TINYALSA_VERSION_STRING in include/tinyalsa/version.h in', srcroot, file=sys.stderr)
- sys.exit(-1)