summaryrefslogtreecommitdiff
path: root/bumpVersion
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-18 16:10:47 +0200
committerErich Eckner <git@eckner.net>2016-04-18 16:10:47 +0200
commit72493ea743b4e8e88f434cd43a98014728999fa7 (patch)
tree6bcaef124fa3f5ae93a4dab9fd818fe23a814183 /bumpVersion
parent558f30601963f54deb3c42d22d72e3a973c363c4 (diff)
downloadarchlinuxewe.git.save-72493ea743b4e8e88f434cd43a98014728999fa7.tar.xz
bumpVersion kann jetzt auch einzeilige Summen
Diffstat (limited to 'bumpVersion')
-rwxr-xr-xbumpVersion7
1 files changed, 6 insertions, 1 deletions
diff --git a/bumpVersion b/bumpVersion
index e2e1a80f..d608e36b 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