Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update the version-sync script to work in a post-tox.api.h world #2885

Merged

Conversation

robinlinden
Copy link
Member

@robinlinden robinlinden commented Feb 22, 2025

Fixes #2884

robin@u:~/code/c-toxcore$ ./tools/update-versions.sh 0.2.21
+ VERSION=0.2.21
++ git rev-parse --show-toplevel
+ GIT_ROOT=/home/robin/code/c-toxcore
+ cd /home/robin/code/c-toxcore
+ VERSION=0.2.21
+ IFS=.
+ read -ra version_parts
+ other/version-sync /home/robin/code/c-toxcore 0 2 21
5c5
< AC_INIT([tox], [0.2.20])
---
> AC_INIT([tox], [0.2.21])
157c157
< #define TOX_VERSION_PATCH              20
---
> #define TOX_VERSION_PATCH              21
47c47
< set(PROJECT_VERSION_PATCH "20")
---
> set(PROJECT_VERSION_PATCH "21")
14c14
< CURRENT=22
---
> CURRENT=23
16c16
< AGE=20
---
> AGE=21

robin@u:~/code/c-toxcore$ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71b1f333..337ad716 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,7 +44,7 @@ set_source_files_properties(
 # versions in a synchronised way.
 set(PROJECT_VERSION_MAJOR "0")
 set(PROJECT_VERSION_MINOR "2")
-set(PROJECT_VERSION_PATCH "20")
+set(PROJECT_VERSION_PATCH "21")
 set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")

 # set .so library version / following libtool scheme
diff --git a/configure.ac b/configure.ac
index b2869a9c..ee095b1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.

 AC_PREREQ([2.65])
-AC_INIT([tox], [0.2.20])
+AC_INIT([tox], [0.2.21])
 AC_CONFIG_AUX_DIR(configure_aux)
 AC_CONFIG_SRCDIR([toxcore/net_crypto.c])
 AM_INIT_AUTOMAKE([foreign 1.10 -Wall -Werror subdir-objects tar-ustar])
diff --git a/so.version b/so.version
index 3415d979..7e5d9222 100644
--- a/so.version
+++ b/so.version
@@ -11,6 +11,6 @@
 # For a full reference see:
 # https://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info

-CURRENT=22
+CURRENT=23
 REVISION=0
-AGE=20
+AGE=21
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 2235ccfd..f44b8201 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -154,7 +154,7 @@ uint32_t tox_version_minor(void);
  * Incremented when bugfixes are applied without changing any functionality or
  * API or ABI.
  */
-#define TOX_VERSION_PATCH              20
+#define TOX_VERSION_PATCH              21

 uint32_t tox_version_patch(void);

This change is Reviewable

@github-actions github-actions bot added the chore Updating grunt tasks etc; no production code change label Feb 22, 2025
@iphydf iphydf added this to the v0.2.21 milestone Feb 22, 2025
Copy link

codecov bot commented Feb 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.04%. Comparing base (66da842) to head (71ec4b3).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2885      +/-   ##
==========================================
- Coverage   72.05%   72.04%   -0.01%     
==========================================
  Files         154      154              
  Lines       31256    31256              
==========================================
- Hits        22520    22519       -1     
- Misses       8736     8737       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@toktok-releaser toktok-releaser merged commit 71ec4b3 into TokTok:master Feb 22, 2025
85 checks passed
@robinlinden robinlinden deleted the chore-fix-version-sync-script branch February 22, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Updating grunt tasks etc; no production code change
Development

Successfully merging this pull request may close these issues.

Make the version update script work
3 participants