bagder: curl-www/docs Makefile, 1.53, 1.54 _thanks.html, 1.9, 1.10 thanks.pl, NONE, 1.1

[email protected]
Newsgroups gmane.comp.web.curl.www.cvs
Message-ID <[email protected]>
Update of /cvsroot/curl/curl-www/docs
In directory labb:/tmp/cvs-serv7121

Modified Files:
	Makefile _thanks.html 
Added Files:
	thanks.pl 
Log Message:
put the names in the thanks page in neat columns


Index: _thanks.html
===================================================================
RCS file: /cvsroot/curl/curl-www/docs/_thanks.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- _thanks.html	9 May 2005 14:44:31 -0000	1.9
+++ _thanks.html	31 Oct 2005 09:27:08 -0000	1.10
@@ -27,7 +27,7 @@
 
 <p>
 
-#include "thanks.t"
+#include "thanks2.t"
 
 #include "_footer.html"
 

--- NEW FILE: thanks.pl ---
#!/usr/bin/perl

while(<STDIN>) {
    push @names, $_;
}

sub showcol {
    my ($c) = @_; # 0, 1, 2 or 3
    my $max = $#names;
    my $single = $max/4;
    my $start = $c*$single;
    my $end = ($start+$single);

    if($c == 3) {
        $end = $max; # prevent rounding errors
    }
    if($c) {
        $start++;
    }

    for($start .. $end) {
        print $names[$_]."<br>\n";
    }
}

# Put them all in three columns
print "<table><tr valign=\"top\"><td>\n";
showcol(0);
print "</td><td>\n";
showcol(1);
print "</td><td>\n";
showcol(2);
print "</td><td>\n";
showcol(3);
print "</td></tr></table>\n";

Index: Makefile
===================================================================
RCS file: /cvsroot/curl/curl-www/docs/Makefile,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- Makefile	13 Oct 2005 21:38:02 -0000	1.53
+++ Makefile	31 Oct 2005 09:27:08 -0000	1.54
@@ -86,12 +86,15 @@
 press.html: _press.html $(MAINPARTS)
 	$(ACTION)
 
-thanks.html: _thanks.html $(MAINPARTS) thanks.t
+thanks.html: _thanks.html $(MAINPARTS) thanks.t thanks2.t
 	actual=`wc -l thanks.t | awk '{print $$1}'` && fcpp $(FCPPOPTS) -D__NUM__=$$actual $< $@
 
 thanks.t: $(DOCROOT)/THANKS
 	grep "^[A-Za-z]" $(DOCROOT)/THANKS | awk '{ print $$0 ", ";}' > $@
 
+thanks2.t: $(DOCROOT)/THANKS thanks.pl
+	grep "^[A-Za-z]" $(DOCROOT)/THANKS | ./thanks.pl > $@
+
 faq.html: _faq.shtml $(MAINPARTS) faq.t
 	$(ACTION)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.