ports/79679: [patch] Tools/scripts/addport: Warn on port directories containing upper-case characters
Volker Stolz
vs at FreeBSD.org
Fri Apr 8 13:50:11 UTC 2005
>Number: 79679
>Category: ports
>Synopsis: [patch] Tools/scripts/addport: Warn on port directories containing upper-case characters
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Apr 08 13:50:10 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Volker Stolz
>Release: FreeBSD 4.11-STABLE i386
>Organization:
Lehrstuhl für Informatik II; RWTH Aachen Universität
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.11-STABLE FreeBSD 4.11-STABLE #23: Fri Jan 14 09:26:11 CET 2005 root at menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386
>Description:
As discussed on ports-cvs, make 'addport' print a warning if the directory
name contains upper-case characters which makes finding a port harder.
>How-To-Repeat:
>Fix:
--- addport.patch begins here ---
Index: addport
===================================================================
RCS file: /usr/freebsdcvs/cvs-ports/ports/Tools/scripts/addport,v
retrieving revision 1.44
diff -u -r1.44 addport
--- addport 20 Mar 2005 17:32:52 -0000 1.44
+++ addport 8 Apr 2005 13:44:13 -0000
@@ -182,6 +182,7 @@
$portname = `basename $thisdir`; # avoid problems with dirs containing `/' in cvs
chomp $portname;
+ warnx("Port directory contains upper-case character! Please try using an all lower-case name to make everybody's life a bit easier.") if ($portname =~ /[A-Z]/);
if ($interactive) {
if (prompt("Port directory name will be $portname in CVS Repo. OK? ")) {
do {
--- addport.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list