diff options
author | Erich Eckner <git@eckner.net> | 2016-05-24 10:02:31 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-05-24 10:02:57 +0200 |
commit | b66522bd5e375f6d8982f3fabf32b45f85df48eb (patch) | |
tree | 51b399efcf2faaedd67fb983f12648853cda3cde /bumpVersion | |
parent | 26967d8b4e73d96995626d2b8dad4fe703d4e719 (diff) | |
download | archlinuxewe-b66522bd5e375f6d8982f3fabf32b45f85df48eb.tar.xz |
bumpVersion kann jetzt auch mehrzeilige Prüfsummen korrekt(er) erneuern
Diffstat (limited to 'bumpVersion')
-rwxr-xr-x | bumpVersion | 12 |
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 |