From 293e77739fa79e52794f0e7930565331851c7011 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 21 Apr 2016 08:37:18 +0200 Subject: bumpVersion löscht nun "/" am Ende des Namens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bumpVersion | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bumpVersion') diff --git a/bumpVersion b/bumpVersion index d0659866..bea54613 100755 --- a/bumpVersion +++ b/bumpVersion @@ -12,16 +12,18 @@ then exit ${err} fi +paket="${1%/}" + cd "$(dirname "$(readlink -f "$0")")" -[ -r "$1/PKGBUILD" ] || exit 1 -eval $(./checkVersions -m "$1") +[ -r "${paket}/PKGBUILD" ] || exit 1 +eval $(./checkVersions -m "${paket}") if [ "${remVer}" == "${pkgver}" ] then exit 0 fi -cd "$1" -# sed ':begin;$!N;s@^\s*\(sha[[:digit:]]\+sums=\|md5sums=\)\([^)]*\)\n\(.*\)$@sha512sums=\2 \3@;tbegin;P;D' PKGBUILD +cd "${paket}" + sed 's|pkgver=.*$|pkgver='"${remVer}"'|; s|pkgrel=.*$|pkgrel=1|; s@^\s*\(sha[[:digit:]]\+sums\|md5sums\)=@sha512sums=@ @@ -41,4 +43,4 @@ sed 's|sha512sums=.*$|'"${summen}"'|' -i PKGBUILD rm -rf pkg src sudo pacman -Sy makepkg -fcsr || exit 1 -git commit PKGBUILD -m "$1 ${pkgver} -> ${remVer}" +git commit PKGBUILD -m "${paket} ${pkgver} -> ${remVer}" -- cgit v1.2.3-70-g09d2