Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/commitpkg.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/commitpkg.in')
-rw-r--r--src/commitpkg.in8
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