summaryrefslogtreecommitdiff
path: root/editors/emacs20/patches/patch-ao
blob: 8ffc2eb5d47e1cc2db6206096f2a2b293207b6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ao,v 1.3 2010/02/04 06:40:19 dholland Exp $

--- mkinstalldirs.orig	1999-07-14 16:49:24.000000000 +0000
+++ mkinstalldirs
@@ -21,12 +21,12 @@ do
        -* ) pathcomp=./$pathcomp ;;
      esac
 
-     if test ! -d "$pathcomp"; then
-        echo "mkdir $pathcomp" 1>&2
+     if test ! -d "${DESTDIR}$pathcomp"; then
+        echo "mkdir ${DESTDIR}$pathcomp" 1>&2
 
-        mkdir "$pathcomp" || lasterr=$?
+        mkdir "${DESTDIR}$pathcomp" || lasterr=$?
 
-        if test ! -d "$pathcomp"; then
+        if test ! -d "${DESTDIR}$pathcomp"; then
   	  errstatus=$lasterr
         fi
      fi