git-hooks/pre-commit/aur-pkgbuild

11 lines
354 B
Bash

#!/bin/sh
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice and this
# notice are preserved. This file is offered as-is, without any warranty.
# Hook to generate & add .SRCINFO to AUR PKGBUILD commits.
makepkg --printsrcinfo > .SRCINFO
git add .SRCINFO