[Patch] relative links instead of absolute links in documentation directories

Helge Deller deller at gmx.de
Thu Nov 14 08:41:51 GMT 2002


Hi, 

In all documentation directories ($(KDEDIR)/share/doc/HTML/en/$(APPNAME))
we currently create an absolute symbolic link (filename: common) to the
$(KDEDIR)/share/doc/HTML/en/common directory.

I think it is a bad idea to use absolute paths here (and everywhere else btw.) since 
it makes packaging and net-mounting of such a directory to another local directory 
nearly impossible.

The following patch creates relative symbolic links to ../common instead and
seems to work correctly for me during my tests.

It would be great if somebody could take over from me and check it into CVS before 3.1 
if this patch is OK. I'll be away for the next 1-2 days and won't be able to do it.

Thanks,
Helge


-------------- next part --------------
Index: am_edit
===================================================================
RCS file: /home/kde/kde-common/admin/am_edit,v
retrieving revision 1.349
diff -u -p -r1.349 am_edit
--- am_edit	2002/10/27 20:48:06	1.349
+++ am_edit	2002/11/14 08:27:41
@@ -1661,7 +1661,7 @@ sub tag_DOCFILES ()
       $lines .= "\t\$(INSTALL_DATA) \$(srcdir)/index.cache.bz2 \$(DESTDIR)\$(kde_htmldir)/$kdelang/$appname/; \\\n";
       $lines .= "\tfi\n";
       $lines .= "\t-rm -f \$(DESTDIR)\$(kde_htmldir)/$kdelang/$appname/common\n";
-      $lines .= "\t\$(LN_S) \$(kde_libs_htmldir)/$kdelang/common \$(DESTDIR)\$(kde_htmldir)/$kdelang/$appname/common\n";
+      $lines .= "\t\$(LN_S) ../common \$(DESTDIR)\$(kde_htmldir)/$kdelang/$appname/common\n";
 
       $lines .= "\n";
       $lines .= "uninstall-docs:\n";


More information about the kde-core-devel mailing list