Author: Till Maas <opensource till name>
License: same as vym
Add the used DOCDIR when building vym to the searchList when searching the
pdf with the documentation.
diff -up vym-1.10.0/vym.pro.docdir-searchList vym-1.10.0/vym.pro
--- vym.pro 2007-10-18 23:43:25.000000000 +0200
+++ vym.pro 2007-10-18 23:43:25.000000000 +0200
@@ -152,9 +152,10 @@ support.files = styles/ scripts/ icons/
support.path = $${DATADIR}/vym
INSTALLS += support
-doc.files = tex/vym.pdf
+doc.files = tex/vym.pdf
doc.path = $${DOCDIR}
INSTALLS += doc
+DEFINES += VYM_DOCDIR=\\\"$${DOCDIR}\\\"
demo.files = demos/
demo.path = $${DEMODIR}
diff -up vym-1.10.0/mainwindow.cpp.docdir-searchList vym-1.10.0/mainwindow.cpp
--- mainwindow.cpp 2007-09-04 15:53:33.000000000 +0200
+++ mainwindow.cpp 2007-10-18 23:44:51.000000000 +0200
@@ -3629,6 +3629,9 @@ void Main::helpDoc()
#if defined(Q_OS_MACX)
searchList << "./vym.app/Contents/Resources/doc";
#else
+ #if defined(VYM_DOCDIR)
+ searchList << VYM_DOCDIR;
+ #endif
// default path in SUSE LINUX
searchList <<"/usr/share/doc/packages/vym";
#endif