From 12ba00f9394a23233a13f8e942b84c9a98c96cdd Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Fri, 7 Apr 2023 00:34:29 +1200 Subject: [PATCH] bump-package-version: bump version emitted by Xvnc -version --- builder/bump-package-version | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builder/bump-package-version b/builder/bump-package-version index ff4fd29..4e09e42 100755 --- a/builder/bump-package-version +++ b/builder/bump-package-version @@ -15,6 +15,11 @@ bump_deb() { builder/bump-package-version-deb "$new_version" } +bump_xvnc_binary() { + local cmd="s/#define XVNCVERSION.\+$/#define XVNCVERSION \"KasmVNC $new_version\"/" + sed -i -e "$cmd" unix/xserver/hw/vnc/xvnc.c +} + new_version="$1" if [[ -z "$new_version" ]]; then @@ -25,5 +30,6 @@ fi cd "$(dirname "$0")/.." update_version_to_meet_packaging_standards +bump_xvnc_binary bump_rpm bump_deb