uri = free_uri = g_filename_to_uri (path, NULL, NULL);
if (g_access (path, F_OK) != 0)
{
- if (g_access (DOCDIR "/midori/user/midori.html", F_OK) == 0)
- uri = "file://" DOCDIR "/midori/user/midori.html";
+ if (g_access (DOCDIR "/user/midori.html", F_OK) == 0)
+ uri = "file://" DOCDIR "/user/midori.html";
else
#endif
uri = "error:nodocs share/doc/midori/user/midori.html";
}
#else
#ifdef DOCDIR
- uri = "file://" DOCDIR "/midori/user/midori.html";
- if (g_access (DOCDIR "/midori/user/midori.html", F_OK) != 0)
+ uri = "file://" DOCDIR "/user/midori.html";
+ if (g_access (DOCDIR "/user/midori.html", F_OK) != 0)
#endif
- uri = "error:nodocs " DOCDIR "/midori/user/midori.html";
+ uri = "error:nodocs " DOCDIR "/user/midori.html";
#endif
}
else if (!strncmp ("HelpFAQ", action_name, 7))
dirname_default ('DOCDIR', os.path.join (conf.env['MDATADIR'], 'doc'))
if not APPNAME in conf.env['DOCDIR']:
conf.env['DOCDIR'] += '/' + APPNAME
+ conf.define ('DOCDIR', conf.env['DOCDIR'])
if option_enabled ('apidocs'):
conf.find_program ('gtkdoc-scan', var='GTKDOC_SCAN')
bld.add_group ()
if bld.env['docs']:
- bld.install_files ('${DOCDIR}/' + '/', \
+ bld.install_files ('${DOCDIR}/', \
'AUTHORS COPYING ChangeLog EXPAT README')
# Install default configuration