From b66522bd5e375f6d8982f3fabf32b45f85df48eb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 24 May 2016 10:02:31 +0200 Subject: bumpVersion kann jetzt auch mehrzeilige Prüfsummen korrekt(er) erneuern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bumpVersion | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bumpVersion') diff --git a/bumpVersion b/bumpVersion index 3def25eb3..5b50d9ac0 100755 --- a/bumpVersion +++ b/bumpVersion @@ -37,7 +37,17 @@ sed ' P; D ' -i PKGBUILD -summen="$(makepkg -g)" + +summen="$( \ + makepkg -g | \ + sed ':begin; + $!N; + s@^sha512sums=\([^)]*\)\n\(.*\)$@sha512sums=\1\\n\2@; + tbegin; + P; + D + ' \ +)" sed 's|sha512sums=.*$|'"${summen}"'|' -i PKGBUILD rm -rf pkg src -- cgit v1.2.3-70-g09d2