git-hooks/pre-commit/aur-pkgbuild

10 lines
255 B
Bash
Executable File

#!/bin/sh
# This work is marked with CC0 1.0. To view a copy of this license, visit
# <http://creativecommons.org/publicdomain/zero/1.0>.
# Git hook to generate & add .SRCINFO to AUR PKGBUILD commits.
makepkg --printsrcinfo > .SRCINFO
git add .SRCINFO