From 01abf5d8bc71f89159150b14b6d2a4d4e258cb8d Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Sun, 11 Jan 2026 16:31:42 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20la=20version=20et?= =?UTF-8?q?=20synchronisation=20du=20fichier=20version.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mise à jour de la version dans PMOMusic/Cargo.toml de 0.3.1 à 0.3.2. Ajout du fichier version.txt contenant la version 0.3.2. Mise à jour du Makefile pour synchroniser automatiquement version.txt depuis PMOMusic/Cargo.toml lors de la mise à jour de la version. Ajout de la cible sync-version dans le Makefile pour permettre une synchronisation manuelle du fichier version.txt. --- Makefile | 11 +++++++++-- PMOMusic/Cargo.toml | 2 +- version.txt | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 version.txt diff --git a/Makefile b/Makefile index d264446c..02ebacca 100644 --- a/Makefile +++ b/Makefile @@ -206,8 +206,15 @@ bump-version: new_version="$$major.$$minor.$$new_patch"; \ echo " Nouvelle version: $$new_version"; \ sed -i.bak "s/^version = \"$$current\"/version = \"$$new_version\"/" PMOMusic/Cargo.toml && \ - rm PMOMusic/Cargo.toml.bak - @echo "$(GREEN)✓ Version mise à jour dans PMOMusic/Cargo.toml$(NC)" + rm PMOMusic/Cargo.toml.bak && \ + echo "$$new_version" > version.txt + @echo "$(GREEN)✓ Version mise à jour dans PMOMusic/Cargo.toml et version.txt$(NC)" + +## sync-version: Synchronise version.txt depuis PMOMusic/Cargo.toml +sync-version: + @echo "$(YELLOW)→ Synchronisation de version.txt...$(NC)" + @grep '^version = ' PMOMusic/Cargo.toml | head -n 1 | sed 's/version = "\(.*\)"/\1/' > version.txt + @echo "$(GREEN)✓ version.txt synchronisé: $$(cat version.txt)$(NC)" ## bench: Exécute les benchmarks bench: diff --git a/PMOMusic/Cargo.toml b/PMOMusic/Cargo.toml index 3853aa5c..cf1a30e5 100644 --- a/PMOMusic/Cargo.toml +++ b/PMOMusic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "PMOMusic" -version = "0.3.1" +version = "0.3.2" edition = "2024" [dependencies] diff --git a/version.txt b/version.txt new file mode 100644 index 00000000..d15723fb --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +0.3.2