]> spindle.queued.net Git - midori/commitdiff
Follow up to correct custom docdir location
authorChristian Dywan <christian@twotoasts.de>
Mon, 1 Nov 2010 20:21:58 +0000 (21:21 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 1 Nov 2010 20:21:58 +0000 (21:21 +0100)
midori/midori-browser.c
wscript

index c97c844153159000b7c8e34d389ad5b403b6d884..77428109085910d152fcf1493c46d9a190e5b4ad 100644 (file)
@@ -4514,8 +4514,8 @@ _action_help_link_activate (GtkAction*     action,
             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";
@@ -4526,10 +4526,10 @@ _action_help_link_activate (GtkAction*     action,
         }
         #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))
diff --git a/wscript b/wscript
index fe95e567d934770ee3a05b2e4686f4fedaf7d080..4da15d0815b28554a3aba78688e729fd2320b2af 100644 (file)
--- a/wscript
+++ b/wscript
@@ -161,6 +161,7 @@ def configure (conf):
     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')
@@ -417,7 +418,7 @@ def build (bld):
     bld.add_group ()
 
     if bld.env['docs']:
-        bld.install_files ('${DOCDIR}/' + '/', \
+        bld.install_files ('${DOCDIR}/', \
             'AUTHORS COPYING ChangeLog EXPAT README')
 
     # Install default configuration