[v5,2/2] utils: update 'version' in package.xml on release
diff mbox series

Message ID 20250720112822.48250-3-Rauch.Christian@gmx.de
State New
Headers show
Series
  • package metadata
Related show

Commit Message

Christian Rauch July 20, 2025, 11:28 a.m. UTC
Synchronise the version string in the package.xml (tag 'version') with the
tagged version on release by string replacement.

Signed-off-by: Christian Rauch <Rauch.Christian@gmx.de>
---
 utils/release.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Kieran Bingham July 20, 2025, 3:26 p.m. UTC | #1
Quoting Christian Rauch (2025-07-20 12:28:22)
> Synchronise the version string in the package.xml (tag 'version') with the
> tagged version on release by string replacement.
> 
> Signed-off-by: Christian Rauch <Rauch.Christian@gmx.de>

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> ---
>  utils/release.sh | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/utils/release.sh b/utils/release.sh
> index 8cc85859b..f90322e00 100755
> --- a/utils/release.sh
> +++ b/utils/release.sh
> @@ -36,11 +36,12 @@ echo "Bumping $bump"
>  echo "  Existing version is: $version"
>  echo "  New version is : $new_version"
>  
> -# Patch in the version to our meson.build
> +# Patch in the version to our meson.build and package.xml
>  sed -i -E "s/ version : '.*',/ version : '$new_version',/" meson.build
> +sed -i -E "s/<version>.*<\/version>/<version>$new_version<\/version>/" package.xml
>  
>  # Commit the update
> -git commit meson.build -esm "libcamera v$new_version"
> +git commit meson.build package.xml -esm "libcamera v$new_version"
>  
>  # Create a tag from that commit
>  git show -s --format=%B | git tag "v$new_version" -s -F -
> -- 
> 2.43.0
>

Patch
diff mbox series

diff --git a/utils/release.sh b/utils/release.sh
index 8cc85859b..f90322e00 100755
--- a/utils/release.sh
+++ b/utils/release.sh
@@ -36,11 +36,12 @@  echo "Bumping $bump"
 echo "  Existing version is: $version"
 echo "  New version is : $new_version"
 
-# Patch in the version to our meson.build
+# Patch in the version to our meson.build and package.xml
 sed -i -E "s/ version : '.*',/ version : '$new_version',/" meson.build
+sed -i -E "s/<version>.*<\/version>/<version>$new_version<\/version>/" package.xml
 
 # Commit the update
-git commit meson.build -esm "libcamera v$new_version"
+git commit meson.build package.xml -esm "libcamera v$new_version"
 
 # Create a tag from that commit
 git show -s --format=%B | git tag "v$new_version" -s -F -