Skip to content

Commit

Permalink
bump + verify script
Browse files Browse the repository at this point in the history
  • Loading branch information
ldev committed Dec 5, 2023
1 parent 57d3a46 commit 74985fc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "git-credential-pass"
description="A simple git credentials helper for pass"
authors=["ldev <ldev dot eu dot org>"]
version = "1.0.1"
version = "1.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion packaging/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pkgver=1.0.1
pkgver=1.1.0
pkgrel=1

pkgname=git-credential-pass
Expand Down
12 changes: 12 additions & 0 deletions verify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# script to verify versions


cargo_ver=$(rg -or "\$1" "^version[\t ]*=[\t ]*\"([0-9]\.[0-9]\.[0-9])\"" Cargo.toml)
echo "$cargo_ver"
pkg_ver=$(rg -or "\$1" "^pkgver=[\t ]*([0-9]\.[0-9]\.[0-9])" packaging/PKGBUILD)


if [ "$cargo_ver" != "$pkg_ver" ] ; then
echo "Cargo.toml version: $cargo_ver doesn't match package version: $pkg_ver"
exit -1
fi

0 comments on commit 74985fc

Please sign in to comment.