www-commits
[Top][All Lists]
Advanced

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

www/prep/wrappers-and-scripts ftp_convert.pl


From: Yavor Doganov
Subject: www/prep/wrappers-and-scripts ftp_convert.pl
Date: Tue, 20 Mar 2007 14:58:20 +0000

CVSROOT:        /web/www
Module name:    www
Changes by:     Yavor Doganov <yavor>   07/03/20 14:58:20

Modified files:
        prep/wrappers-and-scripts: ftp_convert.pl 

Log message:
        Revert my last commit which should have been done in my repo :-(((

CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/prep/wrappers-and-scripts/ftp_convert.pl?cvsroot=www&r1=1.4&r2=1.5

Patches:
Index: ftp_convert.pl
===================================================================
RCS file: /web/www/www/prep/wrappers-and-scripts/ftp_convert.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- ftp_convert.pl      20 Mar 2007 14:42:16 -0000      1.4
+++ ftp_convert.pl      20 Mar 2007 14:58:16 -0000      1.5
@@ -63,7 +63,7 @@
                 die "Header depth exceeds HTML capabilities.";
                 }
                 $printstr=$';
-                $printstr=~s/(address@hidden)/<a href="mailto:$1";>$1<\/a>/g;
+                $printstr=~s/(address@hidden)/<A HREF="mailto:$1";>$1<\/A>/g;
 
                 if ($printstr eq "GNU FTP Site Mirror List")
                 {
@@ -77,17 +77,17 @@
                                {
                                  if ($list_open)
                                        {
-                                               print "</ul>\n";
+                                               print "</UL>\n";
                                                $list_open=0;
                                        }
-                                       print "</ul>\n";
+                                       print "</UL>\n";
                                }
                                $start_of_ftp_list=0;
                 }
-                print "<h$headlvl>$printstr</h$headlvl>\n";
+                print "<H$headlvl>$printstr</H$headlvl>\n";
                 if ($start_of_ftp_list)
                 {
-                        print "<ul>\n";
+                        print "<UL>\n";
                 }
                 $print_current_output=0;
                 next;
@@ -96,8 +96,8 @@
     # Is this a blank line?
     if (/^\s*$/) 
                {
-                       print "</ul>\n" if $state == 2;
-                       print "</p>\n" if $state == 1;
+                       print "</UL>\n" if $state == 2;
+                       print "</P>\n" if $state == 1;
                        $state = 0;
                        next;
     }
@@ -107,20 +107,20 @@
                {
                        if ($state != 2) 
                        {
-                               print "<ul>\n";
+                               print "<UL>\n";
                                $state = 2;
                        }
-                       print "  <li>";
+                       print "  <LI>";
                        s/^\t-//;
 
                        if (/http:\S+/)
                        {
-                               s/(\b\S*http:\S*\b)([\.\s]*)/<a 
href="$1">$1<\/a>$2/g;
+                               s/(\b\S*http:\S*\b)([\.\s]*)/<A 
HREF="$1">$1<\/A>$2/g;
                                next;
                        }
                        if (/ftp\.\S+/)
                        {
-                               s/(ftp\.\S*[\[\]]*(?=\s))(\.*\s*)/<a 
href="ftp:\/\/$1">$1<\/a>$2/g;
+                               s/(ftp\.\S*[\[\]]*(?=\s))(\.*\s*)/<A 
HREF="ftp:\/\/$1">$1<\/A>$2/g;
                                next;
                        }
                        next;
@@ -131,12 +131,12 @@
                {
                        if (/http:\S+/)
                        {
-                               s/(\b\S*http:\S*\b)([\.\s]*)/<a 
href="$1">$1<\/a>$2/g;
+                               s/(\b\S*http:\S*\b)([\.\s]*)/<A 
HREF="$1">$1<\/A>$2/g;
                                next;
                        }
                        if (/ftp\.\S+/)
                        {
-                               s/(\b\S*ftp\.\S*[\[\]]*\b)(\.*\s*)/<a 
href="ftp:\/\/$1">$1<\/a>$2/g;
+                               s/(\b\S*ftp\.\S*[\[\]]*\b)(\.*\s*)/<A 
HREF="ftp:\/\/$1">$1<\/A>$2/g;
                                next;
                        }
                        s:^\t(.*)$:<tt>$1</tt>:;
@@ -151,11 +151,11 @@
                                # Continent
                                if ($list_open)
                                {
-                                       print "</li>\n</li></ul>\n";
+                                       print "</LI>\n</UL>\n";
                                        $list_open=0;
                                }
                                $last_place="";
-                               print "<li>$1\n";
+                               print "<LI>$1\n";
                          $print_current_output=0;
                                next;
                         }
@@ -174,34 +174,34 @@
                                                if ($place ne $last_place)
                                                {
                                                        $list_open=0;
-                                                       print " </li>\n</ul>\n";
+                                                       print " </LI>\n</UL>\n";
                                                }
                                        }
                                        $last_place=$place;
                                        $list_open=1;
-                                       print " <ul>\n";
-                                       print " <li>$place\n";
+                                       print " <UL>\n";
+                                       print " <LI>$place\n";
         }
 
-                               print " <ul>\n";
+                               print " <UL>\n";
                                foreach $ftpsite (@ftp_sites)
                                {
                                  ($actual_bits,$extra_bits) = ($ftpsite =~ 
/(\S+)(.*$)/);
                                        if ($ftpsite =~ /(http:\S+)/ )
                                        {
-                                               print "  <li><a 
href=\"$1\">$1</a>\n";
+                                               print "  <LI><A 
HREF=\"$1\">$1</A>\n";
                                        }
                                        elsif ($ftpsite =~ /(ftp:\S+)/ )
                                        {
-                                               print "  <li><a 
href=\"$1\">$1</a>\n";
+                                               print "  <LI><A 
HREF=\"$1\">$1</A>\n";
                                        }
                                        else
                                        {
-                                               print "  <li><a 
href=\"ftp://$actual_bits\";>$actual_bits</a>$extra_bits\n";
+                                               print "  <LI><A 
HREF=\"ftp://$actual_bits\";>$actual_bits</A>$extra_bits\n";
           }
-                                       print "  </li>\n";
+                                       print "  </LI>\n";
                          };
-                               print " </ul>\n";
+                               print " </UL>\n";
                         }
                         $print_current_output=0;
                         next;
@@ -211,22 +211,22 @@
     # Now we add in URLs as necessary and send it off.
     if ($state == 0) 
                {
-                               print "<p>\n";
+                               print "<P>\n";
                                $state = 1;
     }
                if (/@/)
                {
-                       s/(address@hidden)/<a href="mailto:$1";>$1<\/a>/g;
+                       s/(address@hidden)/<A HREF="mailto:$1";>$1<\/A>/g;
                        next;
                }
                if (/http:\S+/)
                {
-                       s/(\b\S*http:\S*\b)([\.\s]*)/<a href="$1">$1<\/a>$2/g;
+                       s/(\b\S*http:\S*\b)([\.\s]*)/<A HREF="$1">$1<\/A>$2/g;
                        next;
                }
                if (/ftp\.\S+/)
                {
-                       s/(\b\S*ftp\.\S*[\[\]]*\b)(\.*\s*)/<a 
href="ftp:\/\/$1">$1<\/a>$2/g;
+                       s/(\b\S*ftp\.\S*[\[\]]*\b)(\.*\s*)/<A 
HREF="ftp:\/\/$1">$1<\/A>$2/g;
                        next;
                }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]