Changeset 617

Show
Ignore:
Timestamp:
01/25/09 01:18:21 (4 years ago)
Author:
bjourne
Message:

Add an install method to the gtkdoc_mkhtml_task class so that HTML
GTKDoc documentation is installed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gtkimageview/gtkdoc.py

    r616 r617  
    251251                        dstdir) 
    252252 
     253    def install(self): 
     254        parent = self.inputs[0].parent 
     255        parent_abs = parent.abspath(self.env) 
     256        htmldir = os.path.join(parent_abs, 'html') 
     257        dstdir = '${DATADIR}/gtk-doc/html/%s' % self.libname 
     258        install_files = [os.path.join(htmldir, f) for f in os.listdir(htmldir)] 
     259        self.generator.bld.install_files(dstdir, install_files) 
     260 
    253261class gtkdoc_fixxref_task(GTKDocBaseTask): 
    254262    after = 'gtkdoc_mkhtml_task' 
     
    260268        rundir = self.inputs[0].parent.abspath(self.env) 
    261269        return run_proc(fmt, rundir) 
    262          
     270 
    263271@TaskGen.feature('gtkdoc') 
    264272def process_gtkdoc(self):