summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-09 19:07:34 +0100
committerhut <hut@lavabit.com>2013-03-09 19:07:34 +0100
commit3b96a37f7f50e9c0f67ca1ed2374b948262bf682 (patch)
tree01fa126457286e1c8871ab63e78468b8bf543a6c
parent6c5f7d73bc634be4b566f041ff12c6d481fb4207 (diff)
downloadranger-3b96a37f7f50e9c0f67ca1ed2374b948262bf682.tar.gz
setup.py: create a /usr/share/doc/ranger directory
-rwxr-xr-xsetup.py27
1 files changed, 26 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 6d31ffce..96ad6ec7 100755
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@
 # This software is distributed under the terms of the GNU GPL version 3.
 
 import distutils.core
+import os.path
 import ranger
 
 if __name__ == '__main__':
@@ -16,7 +17,31 @@ if __name__ == '__main__':
         license=ranger.__license__,
         url='http://ranger.nongnu.org',
         scripts=['scripts/ranger', 'scripts/rifle'],
-        data_files=[('share/man/man1', ['doc/ranger.1', 'doc/rifle.1'])],
+        data_files=[
+            ('share/man/man1',
+                ['doc/ranger.1',
+                 'doc/rifle.1']),
+            ('share/doc/ranger',
+                ['README',
+                 'CHANGELOG',
+                 'doc/HACKING',
+                 'doc/colorschemes.txt']),
+            ('share/doc/ranger/config',
+                ['ranger/config/commands.py',
+                 'ranger/config/rc.conf',
+                 'ranger/config/rifle.conf',
+                 'ranger/data/scope.sh']),
+            ('share/doc/ranger/config/colorschemes',
+                ['ranger/colorschemes/default.py',
+                 'ranger/colorschemes/jungle.py',
+                 'ranger/colorschemes/snow.py']),
+            ('share/doc/ranger/tools',
+                ['doc/tools/print_colors.py',
+                 'doc/tools/print_keys.py']),
+            ('share/doc/ranger/examples',
+                [os.path.join('doc/examples', f) \
+                    for f in os.listdir('doc/examples')]),
+            ],
         package_data={'ranger': ['data/*', 'config/rc.conf',
             'config/rifle.conf']},
         packages=('ranger',