diff options
author | Morten Linderud <foxboron@archlinux.org> | 2023-05-21 14:20:11 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-05-23 03:03:39 +0200 |
commit | f11cb9018e7d926b6b61660e418d8beb7b39ea62 (patch) | |
tree | 991fc62f8a5b6e85869f6941b62baf096998372a | |
parent | d759eadb50409e83d8d58fa54812738c30ac626d (diff) | |
download | devtools-f11cb9018e7d926b6b61660e418d8beb7b39ea62.tar.xz |
feature(commitpkg): auto generate .SRCINFO if present
This currently makes .SRCINFO files opt-in and helps to keep the file up
to date if already present.
Signed-off-by: Morten Linderud <foxboron@archlinux.org>
-rw-r--r-- | src/commitpkg.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/commitpkg.in b/src/commitpkg.in index e761d8e..c52e4fa 100644 --- a/src/commitpkg.in +++ b/src/commitpkg.in @@ -173,6 +173,14 @@ done # check for PKGBUILD standards check_pkgbuild_validity +# auto generate .SRCINFO if present +if [[ -f .SRCINFO ]]; then + stat_busy 'Generating .SRCINFO' + makepkg --printsrcinfo > .SRCINFO + git add .SRCINFO + stat_done +fi + if [[ -n $(git status --porcelain --untracked-files=no) ]]; then stat_busy 'Staging files' for f in $(git ls-files --modified); do |