This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Stop buildtoc from generating trailing whitespace
authorFlorian Ragwitz <rafl@debian.org>
Tue, 12 Jul 2011 21:51:38 +0000 (23:51 +0200)
committerFlorian Ragwitz <rafl@debian.org>
Tue, 12 Jul 2011 21:52:30 +0000 (23:52 +0200)
In win32/pod.mak, at least.

pod/buildtoc
win32/pod.mak

index bc56ec8..b0968f1 100644 (file)
@@ -626,8 +626,8 @@ sub generate_nmake_2 {
 sub generate_pod_mak {
   my $variable = shift;
   my @lines;
-  my $line = join "\\\n", "\U$variable = ",
-    map {"\t$_.$variable\t"} sort grep { $_ !~ m{/} } keys %Pods;
+  my $line = "\U$variable = " . join "\t\\\n\t",
+    map {"$_.$variable"} sort grep { $_ !~ m{/} } keys %Pods;
   # Special case
   $line =~ s/.*perltoc.html.*\n//m;
   $line;
index d2744d2..878b6c2 100644 (file)
@@ -15,8 +15,7 @@ REALPERL = ..\perl.exe
 
 ICWD = -I..\dist\Cwd
 
-POD = \
-       perl.pod        \
+POD = perl.pod \
        perl5004delta.pod       \
        perl5005delta.pod       \
        perl5100delta.pod       \
@@ -160,10 +159,9 @@ POD = \
        perlunitut.pod  \
        perlutil.pod    \
        perlvar.pod     \
-       perlvms.pod     
+       perlvms.pod
 
-MAN = \
-       perl.man        \
+MAN = perl.man \
        perl5004delta.man       \
        perl5005delta.man       \
        perl5100delta.man       \
@@ -307,10 +305,9 @@ MAN = \
        perlunitut.man  \
        perlutil.man    \
        perlvar.man     \
-       perlvms.man     
+       perlvms.man
 
-HTML = \
-       perl.html       \
+HTML = perl.html       \
        perl5004delta.html      \
        perl5005delta.html      \
        perl5100delta.html      \
@@ -453,11 +450,10 @@ HTML = \
        perlunitut.html \
        perlutil.html   \
        perlvar.html    \
-       perlvms.html    
+       perlvms.html
 # not perltoc.html
 
-TEX = \
-       perl.tex        \
+TEX = perl.tex \
        perl5004delta.tex       \
        perl5005delta.tex       \
        perl5100delta.tex       \
@@ -601,7 +597,7 @@ TEX = \
        perlunitut.tex  \
        perlutil.tex    \
        perlvar.tex     \
-       perlvms.tex     
+       perlvms.tex
 
 man:   $(POD2MAN) $(MAN)