mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 08:37:24 +01:00 
			
		
		
		
	misc/update-version: drop .pl suffix
This commit is contained in:
		
							parent
							
								
									29df4d48f2
								
							
						
					
					
						commit
						10a853039a
					
				
							
								
								
									
										4
									
								
								misc/update-version.pl → misc/update-version
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								misc/update-version.pl → misc/update-version
									
									
									
									
										vendored
									
									
								
							@ -19,11 +19,11 @@ $rev++;
 | 
			
		||||
 | 
			
		||||
print "New version: $rev $date\n";
 | 
			
		||||
 | 
			
		||||
open my $in, '<', "PBot/VERSION.pm" or die "Couldn't open VERSION.pm for reading: $!";
 | 
			
		||||
open my $in, '<', "../PBot/VERSION.pm" or die "Couldn't open VERSION.pm for reading: $!";
 | 
			
		||||
my @lines = <$in>;
 | 
			
		||||
close $in;
 | 
			
		||||
 | 
			
		||||
open my $out, '>', "PBot/VERSION.pm" or die "Couldn't open VERSION.pm for writing: $!";
 | 
			
		||||
open my $out, '>', "../PBot/VERSION.pm" or die "Couldn't open VERSION.pm for writing: $!";
 | 
			
		||||
 | 
			
		||||
foreach my $text (@lines) {
 | 
			
		||||
  $text =~ s/BUILD_NAME\s+=> ".*",/BUILD_NAME     => "PBot",/;
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user