openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00012
[Branch ~openshot.code/openshot/main] Rev 507: Fixed bug #658822, Documentation is not inistalled. Thanks to Elliot Sales de Andrade for the pat...
------------------------------------------------------------
revno: 507
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Thu 2011-08-18 21:50:35 +0100
message:
Fixed bug #658822, Documentation is not inistalled. Thanks to Elliot Sales de Andrade for the patch!.
modified:
setup.py
--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main
Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'setup.py'
--- setup.py 2011-05-03 06:21:39 +0000
+++ setup.py 2011-08-18 20:50:35 +0000
@@ -51,6 +51,31 @@
for filepath in glob.glob("openshot/locale/*/LC_MESSAGES/*"):
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
# -------------------------------------
@@ -62,7 +87,7 @@
'openshot.windows' : ['ui/*.ui', 'ui/icons/*'],
'openshot.uploads' : ['logos/*.png'],
},
- data_files = os_files,
+ data_files = os_files + help_files,
**info.SETUP
)
# -------------------------------------