1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

While generating commit message, don't lowercase the first letter if the second

is upper case (ie : don't end up with pEAR)

Approved by:	will
Asked by:	thierry
This commit is contained in:
Mathieu Arnold 2004-04-04 21:10:38 +00:00
parent 891528b0a7
commit 6e5777c670
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106153

View File

@ -234,8 +234,8 @@ foreach my $thisdir (@dirs) {
# Read COMMENT for part of the commit message.
chomp($pkgcomment = `$make $passenv -V COMMENT`);
# Change the first character to lowercase to make it fit with the
# rest of the commit message.
$pkgcomment =~ s/(^.)/\l$1/;
# rest of the commit message, only if the second is not upper case.
$pkgcomment =~ s/(^.)(?![A-Z])/\l$1/;
# Read Makefile to find necessary variables.
open(MAKEFILE, "Makefile") or die("Can't open Makefile for reading: $!");
while(<MAKEFILE>) {