mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
update make-build.sh to change meson.build version
This commit is contained in:
parent
0e11b40bb2
commit
70afa6c62c
2
extra/make-build.sh
Normal file → Executable file
2
extra/make-build.sh
Normal file → Executable file
@ -3,6 +3,8 @@
|
|||||||
rm -rf tracy-build
|
rm -rf tracy-build
|
||||||
mkdir tracy-build
|
mkdir tracy-build
|
||||||
|
|
||||||
|
./update-meson-version.sh
|
||||||
|
|
||||||
if [ ! -f vswhere.exe ]; then
|
if [ ! -f vswhere.exe ]; then
|
||||||
wget https://github.com/microsoft/vswhere/releases/download/2.8.4/vswhere.exe
|
wget https://github.com/microsoft/vswhere/releases/download/2.8.4/vswhere.exe
|
||||||
fi
|
fi
|
||||||
|
13
extra/update-meson-version.sh
Executable file
13
extra/update-meson-version.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
version_header="../public/common/TracyVersion.hpp"
|
||||||
|
|
||||||
|
major=$(grep -o -E 'Major = [0-9]+' "$version_header" | awk -F '= ' '{print $2}')
|
||||||
|
minor=$(grep -o -E 'Minor = [0-9]+' "$version_header" | awk -F '= ' '{print $2}')
|
||||||
|
patch=$(grep -o -E 'Patch = [0-9]+' "$version_header" | awk -F '= ' '{print $2}')
|
||||||
|
|
||||||
|
version="${major}.${minor}.${patch}"
|
||||||
|
|
||||||
|
# the extension is required for macOS's outdated sed
|
||||||
|
sed -i.bak "s/version: '[0-9]*\.[0-9]*\.[0-9]*'/version: '$version'/g" ../meson.build
|
||||||
|
rm ../meson.build.bak
|
Loading…
Reference in New Issue
Block a user