From 72493ea743b4e8e88f434cd43a98014728999fa7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 18 Apr 2016 16:10:47 +0200 Subject: bumpVersion kann jetzt auch einzeilige Summen --- bumpVersion | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bumpVersion') diff --git a/bumpVersion b/bumpVersion index e2e1a80f0..d608e36b8 100755 --- a/bumpVersion +++ b/bumpVersion @@ -24,8 +24,13 @@ cd "$1" # sed ':begin;$!N;s@^\s*\(sha[[:digit:]]\+sums=\|md5sums=\)\([^)]*\)\n\(.*\)$@sha512sums=\2 \3@;tbegin;P;D' PKGBUILD sed 's|pkgver=.*$|pkgver='"${remVer}"'|; s|pkgrel=.*$|pkgrel=1|; + s@^\s*\(sha[[:digit:]]\+sums\|md5sums\)=@sha512sums=@ +' -i PKGBUILD + +sed ' :begin; - $!N;s@^\s*\(sha[[:digit:]]\+sums=\|md5sums=\)\([^)]*\)\n\(.*\)$@sha512sums=\2 \3@; + $!N; + s@^sha512sums=\([^)]*\)\n\(.*\)$@sha512sums=\1 \2@; tbegin; P; D -- cgit v1.2.3-70-g09d2