Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (16 sloc) 388 Bytes
use strict;
use warnings;
my $build = 1;
my $file;
if(open($file, "build-number.h"))
($build) = <$file> =~ /^\#define BUILD_NUMBER (\d+)$/;
print "$build -> ";
print "$build\n";
close $file;
open($file, ">", "build-number.h") or die "Couldn't open build-number.h for writing.";
print $file "#define BUILD_NUMBER $build\n";
close $file;
Jump to Line
Something went wrong with that request. Please try again.