jj: strip quotes from version
breaks the version update
This commit is contained in:
@@ -4,7 +4,7 @@ _realname=jj
|
||||
_commit=c59dcd76a4e085de85577df7c515bcf7884c8373
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver="0.2.0".586.c59dcd7
|
||||
pkgver=0.2.0.586.c59dcd7
|
||||
pkgrel=2
|
||||
pkgdesc='Jujutsu (an experimental VCS)'
|
||||
arch=('any')
|
||||
@@ -21,6 +21,8 @@ pkgver() {
|
||||
rev_version="$(git blame -lsL '/^version *=/,+1' Cargo.toml)"
|
||||
rev=${rev_version%% *}
|
||||
version=${rev_version##*=}
|
||||
version="${version%\"}"
|
||||
version="${version# \"}"
|
||||
printf "%s.%s.%s" "${version// /}" "$(git rev-list --count $rev.. -- .)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user