On Saturday 10 September 2011, Jim Jagielski wrote:
> On Sep 9, 2011, at 4:11 PM, Stefan Fritsch wrote:
> > [lots of similar changes ...]
> >
> > Removing the out-of-date notices doesn't seem right. I think you
> > may need to svn update your docs/manual/build directory, Jim.
>
> They are up to date.
Ok, after some digging I think the problem is that you use git (don't
you?). The build scripts use the
<!-- $LastChangedRevision$ -->
attribute in the xml files for checking out-of-dateness. But this
attribute is only updated by svn, not by git.
Can you try if the attached patch helps?
Index: build/lib/metafile.pl
===================================================================
--- build/lib/metafile.pl (Revision 1167513)
+++ build/lib/metafile.pl (Arbeitskopie)
@@ -29,6 +29,7 @@
# against fat fingers
use strict;
+use warnings;
# for file operations
use FindBin;
@@ -152,6 +153,7 @@
}
} # for (@files)
+my $no_git;
# get revision of the english original
sub reven($$) {
my $dirname = shift;
@@ -176,6 +178,22 @@
$revs{"$dirname$basename"} = $rev;
}
+ unless ($rev || $no_git) {
+ # LastChangedRevision is not available with git-svn or a git checkout
+ # from git.apache.org. Try to get the revision from the log.
+ my $curpath = docpath("$dirname$basename.xml");
+ # XXX: This does not work if there has been a local commit
+ my $log = qx{git log -1 $curpath 2> /dev/null};
+ if ($? == 0) {
+ if ( $log =~ /git-svn-id:[^\@]+\@(\d+)\s/ ) {
+ $revs{"$dirname$basename"} = $rev = $1;
+ }
+ }
+ else {
+ # no git repo
+ $no_git = 1;
+ }
+ }
return $rev;
}