diff options
Diffstat (limited to 'scripts/sync_versions.sh')
| -rwxr-xr-x | scripts/sync_versions.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/sync_versions.sh b/scripts/sync_versions.sh new file mode 100755 index 0000000..f3955ef --- /dev/null +++ b/scripts/sync_versions.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +version=`just version` + +echo "Using version from meson.build: ${version}" + +# Rust Cargo.toml +echo -ne "\tUpdating: Cargo.toml" +sed -i "s/^version = \"[^\"]*\"$/version = \"$version\"/" Cargo.toml +echo -e "\r\tUpdated: Cargo.toml " + +# Arch PKGBUILD +echo -ne "\tUpdating: PKGBUILD" +sed -i "s/^pkgver=.*$/pkgver=$version/" build-aux/arch/PKGBUILD +echo -e "\r\tUpdated: PKGBUILD " + +# Fedora RPM Spec +echo -ne "\tUpdating: map.spec" +sed -i "s/^Version: .*$/Version: $version/" build-aux/rpm/map.spec +echo -e "\r\tUpdated: map.spec " |