summaryrefslogtreecommitdiff
path: root/Master/tlpkg/etc/create_tlp_simple.pl
blob: 79b2f10e690018558549282b350d3241d15de002 (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 = 1
use strict;

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`;