diff options
Diffstat (limited to 'arch/tde-deps/pod2man/pkgsum.sh')
-rwxr-xr-x | arch/tde-deps/pod2man/pkgsum.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/tde-deps/pod2man/pkgsum.sh b/arch/tde-deps/pod2man/pkgsum.sh new file mode 100755 index 000000000..e908ad353 --- /dev/null +++ b/arch/tde-deps/pod2man/pkgsum.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +#taken from https://bbs.archlinux.org/viewtopic.php?id=131666 by falconindy +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,}
\ No newline at end of file |