diff --git a/Cargo.toml b/Cargo.toml index 304344a..dfa1aaf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "git-credential-pass" description="A simple git credentials helper for pass" authors=["ldev "] -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 diff --git a/packaging/PKGBUILD b/packaging/PKGBUILD index c9ba45c..5dbcdd3 100644 --- a/packaging/PKGBUILD +++ b/packaging/PKGBUILD @@ -1,4 +1,4 @@ -pkgver=1.0.1 +pkgver=1.1.0 pkgrel=1 pkgname=git-credential-pass diff --git a/verify.sh b/verify.sh new file mode 100755 index 0000000..3329edf --- /dev/null +++ b/verify.sh @@ -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