Created
June 25, 2014 01:25
-
-
Save rshipp/f01c4bab9a75e0b2875f to your computer and use it in GitHub Desktop.
A terrible one-liner for in-place updating of PKGBUILD checksums.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oldsums=$(sed -n '/^.*sums=(.*/,/.*)/p' PKGBUILD); newsums=$(makepkg -g); sed -i "/^.*sums=(.*/,/.*)$/y/${oldsums/$'\n'/\\n}/${newsums/$'\n'/\\n}/" PKGBUILD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment