diff options
author | Ian Jackson <ian.jackson@eu.citrix.com> | 2011-11-29 15:48:08 +0000 |
---|---|---|
committer | Ian Jackson <ian.jackson@eu.citrix.com> | 2011-11-29 15:48:08 +0000 |
commit | ec2c0a84c9ca9086c5230966d72d7f5569cb67d6 (patch) | |
tree | b808956de98ff82a46646b1d06a22ca18b13333d /docs/xen-headers | |
parent | 9cf210024a2d58db2d192503f22de6e69096da64 (diff) | |
download | xen-ec2c0a84c9ca9086c5230966d72d7f5569cb67d6.tar.gz xen-ec2c0a84c9ca9086c5230966d72d7f5569cb67d6.tar.bz2 xen-ec2c0a84c9ca9086c5230966d72d7f5569cb67d6.zip |
docs/html/: Arrange for automatic build of hypercall docs
- Use index.html rather than a stamp file.
- Automatically generate dependencies.
- Wire into the docs build system
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'docs/xen-headers')
-rwxr-xr-x | docs/xen-headers | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/xen-headers b/docs/xen-headers index 5a62622a23..08fd7f3462 100755 --- a/docs/xen-headers +++ b/docs/xen-headers @@ -325,6 +325,12 @@ END } foreach $pass (qw(1 2)) { + my $depspath = "$outdir/.deps"; + my $depsout; + if ($pass==2) { + $depsout = new IO::File "$depspath.new", 'w' or die $!; + } + find({ wanted => sub { return unless m/\.h$/; @@ -341,11 +347,19 @@ foreach $pass (qw(1 2)) { $leaf_opath = $leaf; $leaf_opath =~ s#/#,#g; $leaf_opath .= ".html"; + print $depsout "$outdir/index.html: $File::Find::name\n" + or die $! + if $pass==2; process_file($File::Find::name, $outdir.'/'.$leaf_opath); }, no_chdir => 1, }, map { "$basedir/$_" } @indirs); + + if ($pass==2) { + close $depsout or die $!; + rename "$depspath.new", "$depspath" or die $!; + } } output_index(); |