diff options
| author | 2024-07-13 18:43:49 +0100 | |
|---|---|---|
| committer | 2024-07-13 18:43:49 +0100 | |
| commit | 9ca63a89ddd75f66c4eeb7a22697247e83bffd84 (patch) | |
| tree | 3319fc7b2346c23c105343ab27607d30af188b3b /tools | |
| parent | Use pkg-config for determining whether to enable the ldap module. (diff) | |
Allow mkauthors/mkheaders to opt-out of committing changes.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/mkauthors | 10 | ||||
| -rwxr-xr-x | tools/mkheaders | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/tools/mkauthors b/tools/mkauthors index 66e9ac0c0..3d6753c80 100755 --- a/tools/mkauthors +++ b/tools/mkauthors @@ -54,7 +54,9 @@ for my $author (sort { $authors{$b} <=> $authors{$a} or lc($a) cmp lc($b) } keys } close $fh; -execute 'git', 'commit', - '--author', 'InspIRCd Robot <noreply@inspircd.org>', - '--message', 'Update author list.', - '--', $author_file; +if ($ENV{MKAUTHORS_COMMIT} // 1) { + execute 'git', 'commit', + '--author', 'InspIRCd Robot <noreply@inspircd.org>', + '--message', 'Update author list.', + '--', $author_file; +} diff --git a/tools/mkheaders b/tools/mkheaders index 27577fbbc..e254fb415 100755 --- a/tools/mkheaders +++ b/tools/mkheaders @@ -152,7 +152,9 @@ for my $path (@paths) { } } -execute 'git', 'commit', - '--author', 'InspIRCd Robot <noreply@inspircd.org>', - '--message', 'Update copyright headers.', - '--', @updated; +if ($ENV{MKHEADERS_COMMIT} // 1) { + execute 'git', 'commit', + '--author', 'InspIRCd Robot <noreply@inspircd.org>', + '--message', 'Update copyright headers.', + '--', @updated; +} |
