mumble/scripts/mklic.pl
Thorvald Natvig ad2b8e2149 Update copyright for 2009
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1380 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-05 15:12:48 +00:00

29 lines
428 B
Perl

#! /usr/bin/perl
use warnings;
use strict;
use Carp;
sub spitout($$) {
my ($var,$file)=@_;
my $ret;
open(IN, $file) or croak;
my $l = join("", <IN>);
$l =~ s/\r//g;
$l =~ s/\f//g;
$l =~ s/\"/\\\"/g;
$l = join("\\n\"\n\"",split(/\n/, $l));
return qq!static const char *${var} = \"! . $l . "\";\n\n\n";
}
open(F, "> ../src/mumble/licenses.h");
print F spitout("licenseMumble", "../LICENSE");
close(F);