mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
14 lines
509 B
Bash
14 lines
509 B
Bash
|
#!/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
|