From 6d2f8313048db31b9c0fa60e021da0de135e5b5c Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 4 Jan 2021 13:22:01 -0500 Subject: [PATCH] pkgbuild-mode: Generate .SRCINFO when saving file/updating checksums --- .emacs.d/init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6f3b825..b988266 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -784,7 +784,12 @@ pkgbuild-makepkg-command "PKGEXT='.pkg.tar' makepkg -mf") (defun pkgbuild-printsrcinfo () (interactive) - (shell-command "makepkg --printsrcinfo > .SRCINFO"))) + (shell-command "makepkg --printsrcinfo > .SRCINFO")) + (defun pkgbuild-update-sums-line () + (interactive) + (shell-command "updpkgsums") + (pkgbuild-printsrcinfo) + (revert-buffer t t t))) (use-package qml-mode :mode "\\.qml\\'"