summaryrefslogtreecommitdiff
path: root/new-infra/test-tldb.pl
blob: 9238c4f1e77bf3800192b2dfe7db884251fa24a4 (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
31
#!/usr/bin/env perl -w

use strict;

use TLSRC;
use TLP;
use TLDB;
use TLTREE;

#our $opt_debug=1;

my $tldb = new TLDB;
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);
	$tldb->add_tlp($tlp);
}

$tldb->location("test.tldb");
$tldb->save;

print "=========================\n";

my $tldbnew = new TLDB;
$tldbnew->from_file("test.tldb");
$tldbnew->writeout;