From 66303e6c95a423961406bcdfc427b44d7b89e2ad Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 18 Oct 2010 22:17:19 +0200 Subject: [PATCH] --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 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wscript b/wscript index 0ffd4367..5e344c99 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']: -- 2.39.5