File htmldoc-docpath.diff of Package htmldoc.5217

Author: Günther Deschner <guenther at deschner dot de>
Subject: Fix doc path

Index: config.h.in
===================================================================
--- config.h.in.orig
+++ config.h.in
@@ -42,7 +42,7 @@
  * Locations of files...
  */
 
-#define DOCUMENTATION	"/usr/share/doc/htmldoc"
+#define DOCUMENTATION	"/usr/share/doc/packages/htmldoc/doc"
 #define HTML_DATA	"/usr/share/htmldoc"
 
 
Index: doc/Makefile
===================================================================
--- doc/Makefile.orig
+++ doc/Makefile
@@ -44,11 +44,11 @@ all: $(DOCUMENTS)
 #
 
 install: $(DOCUMENTS)
-	if test ! -d $(datadir)/doc/htmldoc; then\
-		$(MKDIR) $(datadir)/doc/htmldoc;\
+	if test ! -d $(datadir)/doc/packages/htmldoc; then\
+		$(MKDIR) $(datadir)/doc/packages/htmldoc;\
 	fi
-	$(CP) $(DOCFILES) $(datadir)/doc/htmldoc
-	$(CHMOD) ugo+r $(datadir)/doc/htmldoc/*
+	$(CP) $(DOCFILES) $(datadir)/doc/packages/htmldoc
+	$(CHMOD) ugo+r $(datadir)/doc/packages/htmldoc/*
 	if test ! -d $(mandir)/man1; then\
 		$(MKDIR) $(mandir)/man1;\
 	fi
openSUSE Build Service is sponsored by