summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec/place
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-03-25 15:51:09 +0000
committerKarl Berry <karl@freefriends.org>2011-03-25 15:51:09 +0000
commit1257ed8c4e6826365c791fd2d419109682ad950b (patch)
treea86b0ef681701c8f516bbe3e0235ccb466bd171c /Master/tlpkg/libexec/place
parentde8b569a26cb4822b116007efe264c40284a9b52 (diff)
latexmk in Build, take 2
git-svn-id: svn://tug.org/texlive/trunk@21827 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/libexec/place')
-rwxr-xr-xMaster/tlpkg/libexec/place21
1 files changed, 13 insertions, 8 deletions
diff --git a/Master/tlpkg/libexec/place b/Master/tlpkg/libexec/place
index 6912e6554d8..464b0b93a0f 100755
--- a/Master/tlpkg/libexec/place
+++ b/Master/tlpkg/libexec/place
@@ -105,16 +105,15 @@ print "\n\f ";
&compare_disk_vs_tlpobj ($cooked_master, $tlpnew);
&show_tlp_diffs ($tlpnew, %Old);
-# xx add dirs for existing files
-# xx need svn cp, too.
-my ($new_build_files,$exxisting) = &build_files ($cooked_pkg, $DEST);
-my @new_build_files = @$new_build_files;
-
&xchdir ($cooked_pkg);
print "place: checking for case-insensitive clashes\n";
print `find . -prune -o -print | sort | uniq -i -d`;
print "\n";
+# xx need svn cp, too.
+my ($new_build_files,$existing_build_files) = &build_files ($cooked_pkg,$DEST);
+my @new_build_files = @$new_build_files;
+
# Figure out removals relative to old package.
&xchdir ($cooked_master);
find (\&files, "."); # sets %New to all new files under Master
@@ -161,9 +160,15 @@ if (keys %Old == 0) { # new package
# this file will often change, so be sure and include it.
$dirs{"$M/tlpkg/tlpsrc/$package.tlpsrc"}++;
-# if we have a new directory Build/.../linked_scripts/foo, we
-# need the linked_scripts directory itself, too, since the Makefile.am
-# should have been changed (by hand).
+# include any directories with existing files in Build.
+for my $bf (@$existing_build_files) {
+ (my $dir = $bf) =~ s,/[^/]*$,,;
+ $dirs{$dir}++;
+}
+
+# if we have a directory Build/.../linked_scripts/foo,
+# include the linked_scripts directory, since the Makefile.am and .in
+# should have been changed (by hand) if the script was new.
for my $dir (keys %dirs) {
next unless $dir =~ m,Build/.*/linked_scripts,;
$dir =~ s,/linked_scripts/.*$,/linked_scripts,;