summaryrefslogtreecommitdiff
path: root/net/mpich2/files/patch-src_mpe2_src_sbin_mpeinstall.in
blob: 80c96bad63f45b0dad3f1020539af7f92e296c77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--- src/mpe2/sbin/mpeinstall.in.orig	2009-10-16 01:50:22.000000000 +0200
+++ src/mpe2/sbin/mpeinstall.in	2014-08-20 22:43:03.000000000 +0200
@@ -529,7 +529,7 @@
     # so $docdir (with NULL PACKAGE) is appended to dirlist for removal.
     savedPACKAGE=$PACKAGE
     PACKAGE=""
-    MkDir @docdir@
+%%PORTDOCS%%    MkDir @docdir@
     PACKAGE=$savedPACKAGE
 fi
 
@@ -577,15 +577,15 @@
 # ie INSTALL $top_srcdir/doc  $docdir
 #    INSTALL $top_srcdir/man  $mandir
 #    INSTALL $top_srcdir/html $htmldir
-for type in doc man html ; do
-    typename=${type}dir
-    eval typevalue=\$"$typename"
-    if [ -d $top_srcdir/$type ] ; then
-        MkDir $typevalue
-        echo "Installing $pkgname $type to $DESTDIR$typevalue"
-        InstallDirRecur $top_srcdir/$type $typevalue $MODE
-    fi
-done
+%%PORTDOCS%%for type in doc man html ; do
+%%PORTDOCS%%    typename=${type}dir
+%%PORTDOCS%%    eval typevalue=\$"$typename"
+%%PORTDOCS%%    if [ -d $top_srcdir/$type ] ; then
+%%PORTDOCS%%        MkDir $typevalue
+%%PORTDOCS%%        echo "Installing $pkgname $type to $DESTDIR$typevalue"
+%%PORTDOCS%%        InstallDirRecur $top_srcdir/$type $typevalue $MODE
+%%PORTDOCS%%    fi
+%%PORTDOCS%%done
 
 # Remove old uninstall file
 if [ "$appendUninstall" = 0 -a -f $UNINSTALLFILE ] ; then
@@ -632,7 +632,6 @@
 
 if [ "$appendUninstall" = 0 ] ; then
     echo "$RM -f $sbindir/mpeuninstall" >> $UNINSTALLFILE
-    echo "$RM -f $UNINSTALLFILE" >> $UNINSTALLFILE
 fi
 
 # Add the directory removes to the UNINSTALL file
@@ -643,8 +642,8 @@
 if [ "$appendUninstall" = 0 ] ; then
     cp $UNINSTALLFILE $sbinbuild_dir/mpeuninstall
 #
-    echo "Installed $pkgname in $DESTDIR$prefix"
-    echo "$UNINSTALLFILE may be used to remove the installation"
+    echo "Installed $pkgname in $prefix"
+    echo "${sbindir}/${UNINSTALL_base} may be used to remove the installation"
 fi
 
 if [ $errs -gt 0 ] ; then