Commit Graph

4 Commits

Author SHA1 Message Date
Zoltan Somogyi
ae701f4200 Improve pre-commit git_hook.
git_hooks/update_copyright.pre-commit:
    Document the operation of this script in more detail.

    Document the use of the new Makefile, and of the new environment
    variable that can be used to avoid redundant copies of the update_copyright
    program's executable.

git_hooks/Makefile:
    Add a trivial makefile to shorten the build and clean commands.

git_hooks/update_copyright.m:
    Merge contiguous year ranges in copyright lines.
2024-03-13 16:50:00 +11:00
Peter Wang
74c2218c7c Allow for Mercury [Tt]eam in pre-commit hook. 2024-02-21 17:06:50 +11:00
Zoltan Somogyi
940323b7a0 Update usage documentation. 2024-02-13 11:35:39 +11:00
Peter Wang
d24390748c Add a tool to help maintain Copyright lines.
git_hooks/update_copyright.m:
git_hooks/.gitignore:
    Add the update_copyright program. It is deliberately not integrated
    into the build system as it should be compiled once, manually, then
    left in the workspace across checkouts, mmake clean, etc.

git_hooks/update_copyright.pre-commit:
    Add a sample git pre-commit hook. It is up to the developer to
    enable the hook in his/her workspace if desired.
2024-02-12 11:05:07 +11:00