From 71ec4b3b1e927790c35734159955a7fc5b548ae7 Mon Sep 17 00:00:00 2001 From: Robin Linden Date: Sat, 22 Feb 2025 15:49:22 +0100 Subject: [PATCH] chore: Update the version-sync script to work in a post-tox.api.h world --- other/version-sync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/other/version-sync b/other/version-sync index 015a441578..5dcfa7e088 100755 --- a/other/version-sync +++ b/other/version-sync @@ -25,9 +25,9 @@ update() { update 'configure.ac' 's/AC_INIT(\[tox\], \[.*\])/AC_INIT([tox], ['"$VER"'])/' -update 'toxcore/tox.api.h' 's/\(const VERSION_MAJOR *= \).*;/\1'"$MAJOR"';/' -update 'toxcore/tox.api.h' 's/\(const VERSION_MINOR *= \).*;/\1'"$MINOR"';/' -update 'toxcore/tox.api.h' 's/\(const VERSION_PATCH *= \).*;/\1'"$PATCH"';/' +update 'toxcore/tox.h' 's/\(#define TOX_VERSION_MAJOR *\).*/\1'"$MAJOR"'/' +update 'toxcore/tox.h' 's/\(#define TOX_VERSION_MINOR *\).*/\1'"$MINOR"'/' +update 'toxcore/tox.h' 's/\(#define TOX_VERSION_PATCH *\).*/\1'"$PATCH"'/' update 'CMakeLists.txt' 's/\(PROJECT_VERSION_MAJOR "\).*"/\1'"$MAJOR"'"/' update 'CMakeLists.txt' 's/\(PROJECT_VERSION_MINOR "\).*"/\1'"$MINOR"'"/'