summaryrefslogtreecommitdiff
path: root/office/calibre/patches/fix-manpages.diff
blob: 55e7ff8582cf737fb25809049fe5d22ddf258c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Naur calibre-0.5.6.orig/src/calibre/linux.py calibre-0.5.6/src/calibre/linux.py
--- calibre-0.5.6.orig/src/calibre/linux.py	2009-04-09 04:13:27.000000000 +0000
+++ calibre-0.5.6/src/calibre/linux.py	2009-04-13 22:17:10.000000000 +0000
@@ -417,7 +417,7 @@
 def install_man_pages(fatal_errors, use_destdir=False):
     from calibre.utils.help2man import create_man_page
     prefix = os.environ.get('DESTDIR', '/') if use_destdir else '/'
-    manpath = os.path.join(prefix, 'usr/share/man/man1')
+    manpath = os.path.join(prefix, 'usr/man/man1')
     if not os.path.exists(manpath):
         os.makedirs(manpath)
     print 'Installing MAN pages...'
@@ -431,7 +431,7 @@
             continue
         parser = parser()
         raw = create_man_page(prog, parser)
-        manfile = os.path.join(manpath, prog+'.1'+__appname__+'.bz2')
+        manfile = os.path.join(manpath, prog+'.1'+'.bz2')
         print '\tInstalling MAN page for', prog
         open(manfile, 'wb').write(raw)
         manifest.append(manfile)