diff -upr openshot-1.2.2/setup.py openshot-1.2.2-doc/setup.py --- openshot-1.2.2/setup.py 2010-09-18 03:13:47.000000000 -0400 +++ openshot-1.2.2-doc/setup.py 2010-10-11 19:28:22.987530431 -0400 @@ -52,6 +52,31 @@ for filepath in glob.glob("openshot/loca filepath = filepath.replace('openshot/', '') locale_files.append(filepath) +# Add the help files +help_files = [] +for path in glob.glob(os.path.join('docs', 'gnome', '*')): + lang = os.path.basename(path) + if lang == 'figures': + continue + path_xml = os.path.join('share', 'gnome', 'help', 'openshot', lang) + help_files.append((path_xml, glob.glob('%s/*.xml' % path))) + +# figures are not locale-specific +figures = glob.glob(os.path.join('docs', 'gnome', 'figures', '*.png')) +figures_path = os.path.join('share', 'gnome', 'help', 'openshot', 'figures') +help_files.append((figures_path, figures)) +figures = glob.glob(os.path.join('docs', 'gnome', 'figures', 'effects', '*.png')) +figures_path = os.path.join('share', 'gnome', 'help', 'openshot', 'figures', 'effects') +help_files.append((figures_path, figures)) +figures = glob.glob(os.path.join('docs', 'gnome', 'figures', 'transitions', '*.png')) +figures_path = os.path.join('share', 'gnome', 'help', 'openshot', 'figures', 'transitions') +help_files.append((figures_path, figures)) + +# OMFs are in a different directory +omfs = glob.glob(os.path.join('docs', 'omf', '*.omf')) +omf_path = os.path.join('share', 'omf', 'openshot') +help_files.append((omf_path, omfs)) + # Call the main Distutils setup command # ------------------------------------- dist = setup( @@ -61,7 +86,7 @@ dist = setup( 'openshot' : ['export_presets/*', 'images/*', 'locale/OpenShot/*', 'locale/README', 'profiles/*', 'themes/*/*.png', 'themes/*/*.xml', 'themes/*/icons/*.png', 'titles/*/*.svg', 'transitions/icons/*.png', 'transitions/*.pgm', 'transitions/*.png', 'transitions/*.svg', 'effects/icons/*.png', 'effects/*.xml', 'blender/blend/*.blend', 'blender/icons/*.png', 'blender/scripts/*.py', 'blender/*.xml'] + locale_files, 'openshot.windows' : ['ui/*.ui', 'ui/icons/*'], }, - data_files = os_files, + data_files = os_files + help_files, **info.SETUP ) # -------------------------------------