File mpe2-install.diff of Package mpich2

Index: mpich2-1.2.1/src/mpe2/sbin/mpeinstall.in
===================================================================
--- mpich2-1.2.1.orig/src/mpe2/sbin/mpeinstall.in
+++ mpich2-1.2.1/src/mpe2/sbin/mpeinstall.in
@@ -39,12 +39,12 @@ docdir=@docdir@
 htmldir=@htmldir@
 mandir=@mandir@
 # Since autoconf < 2.60 does not set @docdir@ and @htmldir@,
 # If not set, docdir=@docdir@ remains, set them accordingly.
-if [ "$docdir" = "@docdir@" ] ; then
-    docdir=${datadir}/doc/${PACKAGE}
+if [ "${docdir:0:1}" = "@" ] ; then
+    docdir=${datadir}/doc/packages/${PACKAGE}
 fi
-if [ "$htmldir" = "@htmldir@" ] ; then
+if [ "${htmldir:0:1}" = "@" ] ; then
     htmldir=${docdir}
 fi
 
 # Assume PROF_LIBNAME=MPE_LIBNAME.
Index: mpich2-1.2.1/src/mpe2/src/slog2sdk/sbin/install-package.in
===================================================================
--- mpich2-1.2.1.orig/src/mpe2/src/slog2sdk/sbin/install-package.in
+++ mpich2-1.2.1/src/mpe2/src/slog2sdk/sbin/install-package.in
@@ -38,10 +38,10 @@ datarootdir=@datarootdir@
 datadir=@datadir@
 docdir=@docdir@
 # Since autoconf < 2.60 does not set @docdir@ and @htmldir@,
 # If not set, docdir=@docdir@ remains, set them accordingly.
-if [ "$docdir" = "@docdir@" ] ; then
-    docdir=${datadir}/doc/${PACKAGE}
+if [ "${docdir:0:1}" = "@" ] ; then
+    docdir=${datadir}/doc/pcakages/${PACKAGE}
 fi
 
 # Determine this package's name
 pkgname="`echo $top_srcdir | sed -e 's%\(.*\)/\([^/]*\)%\2%'`"
openSUSE Build Service is sponsored by