[Xfce4-commits] <midori:master> --docdir should take not add 'midori' folder if given
Christian Dywan
noreply at xfce.org
Tue Oct 19 00:54:01 CEST 2010
Updating branch refs/heads/master
to 66303e6c95a423961406bcdfc427b44d7b89e2ad (commit)
from 068ff32a7220ac94432361cef345f7ae114d2c57 (commit)
commit 66303e6c95a423961406bcdfc427b44d7b89e2ad
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Oct 18 22:17:19 2010 +0200
--docdir should take not add 'midori' folder if given
So it is possible to pass either /usr/share/docdir or
/usr/share/doc/midori-0.2.9 as appropriate.
wscript | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/wscript b/wscript
index 0ffd436..5e344c9 100644
--- a/wscript
+++ b/wscript
@@ -159,6 +159,8 @@ def configure (conf):
'MDATADIR')
conf.undefine ('DATADIR')
dirname_default ('DOCDIR', os.path.join (conf.env['MDATADIR'], 'doc'))
+ if not APPNAME in conf.env['DOCDIR']:
+ conf.env['DOCDIR'] += '/' + APPNAME
if option_enabled ('apidocs'):
conf.find_program ('gtkdoc-scan', var='GTKDOC_SCAN')
@@ -415,7 +417,7 @@ def build (bld):
bld.add_group ()
if bld.env['docs']:
- bld.install_files ('${DOCDIR}/' + APPNAME + '/', \
+ bld.install_files ('${DOCDIR}/' + '/', \
'AUTHORS COPYING ChangeLog EXPAT README')
# Install default configuration
@@ -432,7 +434,7 @@ def build (bld):
'../../../docs/user/midori.txt ' + 'midori.html'
Utils.exec_command (command)
os.chdir ('../../..')
- bld.install_files ('${DOCDIR}/midori/user/', blddir + '/docs/user/midori.html')
+ bld.install_files ('${DOCDIR}/user/', blddir + '/docs/user/midori.html')
if bld.env['INTLTOOL']:
obj = bld.new_task_gen ('intltool_po')
@@ -441,7 +443,7 @@ def build (bld):
if bld.env['GTKDOC_SCAN'] and Options.commands['build']:
bld.add_subdirs ('docs/api')
- bld.install_files ('${DOCDIR}/midori/api/', blddir + '/docs/api/*')
+ bld.install_files ('${DOCDIR}/api/', blddir + '/docs/api/*')
if not is_mingw (bld.env) and Options.platform != 'win32':
if bld.env['HAVE_HILDON']:
More information about the Xfce4-commits
mailing list