From 619755811005b3f01f7778847240ab5157eabc1a Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 21 Jun 2007 07:56:23 +0000 Subject: TLTREE: $tltree->init_from_files inits from a find $svnroot command, all the revisions are set to 1 git-svn-id: svn://tug.org/texlive/trunk@4483 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/TeXLive/TLTREE.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Master/tlpkg/TeXLive/TLTREE.pm') diff --git a/Master/tlpkg/TeXLive/TLTREE.pm b/Master/tlpkg/TeXLive/TLTREE.pm index f979618b303..8b508bef634 100644 --- a/Master/tlpkg/TeXLive/TLTREE.pm +++ b/Master/tlpkg/TeXLive/TLTREE.pm @@ -45,6 +45,13 @@ sub init_from_statusfile { close(TMP); $self->_initialize_lines(@lines); } +sub init_from_files { + my $self = shift; + my $svnroot = $self->{'svnroot'}; + my @lines = `find $svnroot ! -wholename '*/.svn*'`; + @lines = map { s@^$svnroot@@; s@^/@@; " 1 1 dummy $_" } @lines; + $self->_initialize_lines(@lines); +} sub _initialize_lines { my $self = shift; @@ -217,6 +224,7 @@ sub _get_matching_files { # . -> \. # * -> .* # ? -> . +# + -> \+ sub _get_files_matching_glob_pattern { my $self = shift; my ($type,$globline) = @_; -- cgit v1.2.3