15 lines
230 B
Plaintext
15 lines
230 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
awk -v newsums="$(makepkg -g)" '
|
||
|
BEGIN {
|
||
|
if (!newsums) exit 1
|
||
|
}
|
||
|
|
||
|
/^[[:blank:]]*(md|sha)[[:digit:]]+sums=/,/\)[[:blank:]]*$/ {
|
||
|
if (!i) print newsums; i++
|
||
|
next
|
||
|
}
|
||
|
|
||
|
1
|
||
|
' PKGBUILD > PKGBUILD.new && mv PKGBUILD{.new,}
|