summaryrefslogtreecommitdiff
path: root/bumpVersion
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-24 10:02:31 +0200
committerErich Eckner <git@eckner.net>2016-05-24 10:02:57 +0200
commitb66522bd5e375f6d8982f3fabf32b45f85df48eb (patch)
tree51b399efcf2faaedd67fb983f12648853cda3cde /bumpVersion
parent26967d8b4e73d96995626d2b8dad4fe703d4e719 (diff)
downloadarchlinuxewe-b66522bd5e375f6d8982f3fabf32b45f85df48eb.tar.xz
bumpVersion kann jetzt auch mehrzeilige Prüfsummen korrekt(er) erneuern
Diffstat (limited to 'bumpVersion')
-rwxr-xr-xbumpVersion12
1 files changed, 11 insertions, 1 deletions
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