pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

(doxygen-depends/files/generate) adjust format if trailing comment exists.



Module Name:	pkgsrc-wip
Committed By:	Makoto Fujiwara (CF-S9) <makoto%ki.nu@localhost>
Pushed By:	mef
Date:		Wed Nov 23 07:50:43 2016 +0900
Changeset:	0d776612cfc90bf30f2c61c4f66931be1050032c

Modified Files:
	doxygen-depend/files/generate

Log Message:
(doxygen-depends/files/generate) adjust format if trailing comment exists.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0d776612cfc90bf30f2c61c4f66931be1050032c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 doxygen-depend/files/generate | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diffs:
diff --git a/doxygen-depend/files/generate b/doxygen-depend/files/generate
index 9a58131..985ddd3 100644
--- a/doxygen-depend/files/generate
+++ b/doxygen-depend/files/generate
@@ -115,7 +115,7 @@ sub wanted(){
 	    }
 	}
 	close(FILE);
-	if ($yes &&  $directory =~ m|/| ) {
+	if ($yes &&  $directory =~ m|/| ) { # avoid category/Makefile
 	    $count++;
 	    my ($leaf) = $directory;
 	    $leaf =~ s|.*/||;
@@ -126,12 +126,12 @@ sub wanted(){
 	    my ($comment) = $COMMENT{$leaf};
 	    $directory =~ s/[\t ]*$//;
 	    my ($string) =
-	    sprintf "%s-[0-9]*:../../%s", $leaf, $directory;	    
-	    if ( ! $comment =~ m|^[\t ]+$|) {
-		printf "%sUILD_DEPENDS+=\t%s+%s+\n", $B, $string, $comment;
+		sprintf "%s-[0-9]*:../../%s", $leaf, $directory;
+	    if ( $comment =~ m|[\t ]*\#|) {
+		printf "%sUILD_DEPENDS+=\t%-35s\t%s\n", $B, $string, $comment;
 
 	    } else {
-		printf "%sUILD_DEPENDS+=\t%-45s\n", $B, $string;
+		printf "%sUILD_DEPENDS+=\t%s%s\n", $B, $string;
 
 	    }
 	}


Home | Main Index | Thread Index | Old Index