Changeset 6964 in genesis
- Timestamp:
- Jun 13, 2009, 4:13:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/FreeBSD7_x/g_list.pl
r6958 r6964 1 #!/usr/bin/perl -w1 #!/usr/bin/perl 2 2 # 3 3 # Copyright 2005 Stichting Wireless Leiden … … 39 39 closedir DIR; 40 40 foreach $dir (sort @tmpdirs) { 41 no warnings "once"; 41 42 if( not exists($removefromnodelist{$dir}) ) 42 43 { … … 47 48 if ( $debug ) { print "'$dir' removed from list\n"; } 48 49 } 50 use warnings "once"; 49 51 }; 50 52 return @nodelist; … … 180 182 #ophalen svn versie 181 183 sub svn_version { 182 local($file ,$char)=@_;184 local($file)=@_; 183 185 local($svn_version); 184 186 $svn_version=`$svn info $file`; 185 if( $char ne '' ) {186 $svn_version=~s/^([^$char].*)/$char $1/mgi;187 };188 187 return($svn_version); 189 188 }; … … 200 199 201 200 201 no warnings "once"; 202 202 my $TP=''; 203 203 if( $tproxy !~ m/no/i ) { … … 286 286 }; 287 287 printline("</TABLE>"); 288 no warnings "once"; 288 289 }; 289 290 … … 294 295 my $file=$_[0]; 295 296 $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); 298 299 299 300 if( $svn_versiont=~/Last Changed Rev: (\d+)/ ) { … … 322 323 $pr=~s/</</gi; 323 324 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.