summaryrefslogtreecommitdiff
path: root/new-infra/create-tlp.pl
blob: 673fba5f5680342b059ac508664eb823e30065ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env perl -w

use strict;

use TLSRC;
use TLP;
use TLTREE;
use Data::Dumper;

my $tltree = TLTREE->new( 'svnroot' => "/src/TeX/texlive-svn/new-infra" );
$tltree->init_from_svn;

foreach my $f (@ARGV) {
	my $tlsrc = new TLSRC;
	$tlsrc->from_file($f);
	my $tlp = $tlsrc->make_tlp($tltree);
	my $name = $tlp->name;
	open(FOO,">tlp/$name.tlp");
	$tlp->writeout(\*FOO);
	close(FOO);
}