$search
00001 ''' 00002 Created on Jul 27, 2010 00003 00004 This wraps the rosdoc function with some functions to temporarily switch out the 00005 rosdoc doxygen template and switch back in when doing ecl docs. 00006 00007 @author: Daniel Stonier 00008 ''' 00009 00010 import roslib; roslib.load_manifest('rosdoc') 00011 import rosdoc; roslib.load_manifest('ecl_doc') 00012 import shutil 00013 00014 def copy_patched_doxy_template(): 00015 patched_template = roslib.packages.get_pkg_dir('ecl_doc')+"/templates/doxy.template" 00016 rosdoc_dir = roslib.packages.get_pkg_dir('rosdoc') 00017 shutil.copyfile(patched_template,rosdoc_dir+'/templates/doxy.template') 00018 00019 def copy_original_doxy_template(): 00020 original_template = roslib.packages.get_pkg_dir('ecl_doc')+"/templates/doxy.template.original" 00021 rosdoc_dir = roslib.packages.get_pkg_dir('rosdoc') 00022 shutil.copyfile(original_template,rosdoc_dir+'/templates/doxy.template') 00023 00024 def main(): 00025 copy_patched_doxy_template() 00026 rosdoc.main() 00027 # copy_original_doxy_template() 00028 00029 if __name__ == "__main__": 00030 main() 00031