[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/livecode/livecode/develop/util/encode_version.pl [Back]  [Original]

#!/usr/bin/env perl

use warnings;

sub trim
{
	my $trimmed = $_[0];
	$trimmed =~ s/^\s+|\s+$//g ;
	return $trimmed;
}

my $gitRevision = $ARGV[0];
my $inputDir = $ARGV[1];
my $outputDir = $ARGV[2];

# Open the file containing the variables
open VARIABLES, "" . $outputDir . "/include/revbuild.h"
	or die "Could not open output file: $!";
print OUTPUT $output;
close OUTPUT;

Web Proxy Viewer  |  New URL  |  Original Page