Changeset 6964 in genesis


Ignore:
Timestamp:
Jun 13, 2009, 4:13:56 PM (16 years ago)
Author:
rick
Message:
  • Tired of all warnings in httpd log. Fixed a few and disabled the warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/FreeBSD7_x/g_list.pl

    r6958 r6964  
    1 #!/usr/bin/perl -w
     1#!/usr/bin/perl
    22#
    33# Copyright 2005 Stichting Wireless Leiden
     
    3939  closedir DIR;
    4040  foreach $dir (sort @tmpdirs) {
     41    no warnings "once";
    4142    if( not exists($removefromnodelist{$dir}) )
    4243    {
     
    4748    if ( $debug ) { print "'$dir' removed from list\n"; }
    4849    }
     50    use warnings "once";
    4951  };
    5052  return @nodelist;
     
    180182#ophalen svn versie
    181183sub svn_version {
    182   local($file,$char)=@_;
     184  local($file)=@_;
    183185  local($svn_version);
    184186  $svn_version=`$svn info $file`;
    185   if( $char ne '' ) {
    186     $svn_version=~s/^([^$char].*)/$char $1/mgi;
    187   };
    188187  return($svn_version);
    189188};
     
    200199
    201200
     201 no warnings "once";
    202202 my $TP='';
    203203 if( $tproxy !~ m/no/i ) {
     
    286286 };
    287287 printline("</TABLE>");
     288 no warnings "once";
    288289};
    289290
     
    294295  my $file=$_[0];
    295296  $config="$ndir/$node/$configfile";
    296   $svn_versiont=svn_version($toolfile,$char);
    297   $svn_versionc=svn_version($config,$char);
     297  $svn_versiont=svn_version($toolfile);
     298  $svn_versionc=svn_version($config);
    298299
    299300  if( $svn_versiont=~/Last Changed Rev: (\d+)/ ) {
     
    322323    $pr=~s/</&lt;/gi;
    323324    printline("<PRE>$pr</PRE>");
    324   }
    325 
    326   $output = join('',@HTTP_BODY);
    327   print "Content-Length: " . length($output) . " \n";
    328   print "Content-type: text/html\n\n";
    329   print $output;
    330 };
     325  } else {
     326    @HTTP_BODY = $pr;
     327  };
     328};
Note: See TracChangeset for help on using the changeset viewer.