summaryrefslogtreecommitdiff
path: root/new-infra/create_tlp_simple.pl
blob: e8911e190ae6936d024c809b25e316689a02e097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env perl -w

use strict;
use lib '../new-infra';

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

#our $opt_debug=1;

my $tltree = TLTREE->new( 'svnroot' => "/src/TeX/texlive-svn/Master" );
print "Initializing tltree start: ", `date`;
$tltree->init_from_statusfile("/src/TeX/texlive-svn/Master/svn.status");
print "Initializing tltree stop: ", `date`;

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

print "End of operation: ", `date`;