all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#22822: Use MKDIR_P instead of mkdir --parents in test/Makefile.in
@ 2016-02-26 16:55 Aaron S. Hawley
  2016-02-28  3:02 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron S. Hawley @ 2016-02-26 16:55 UTC (permalink / raw
  To: 22822

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

Some platforms don't support the long options for mkdir.  Seems there
is a variable, MKDIR_P, set by Autoconf that is used elsewhere in the
Emacs build system that could be used instead.  Patch is attached and
quoted below.

Thanks,
Aaron

---
 test/Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/Makefile.in b/test/Makefile.in
index b5954df..beb3ff9 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -29,6 +29,7 @@
 ### Code:

 SHELL = @SHELL@
+MKDIR_P = @MKDIR_P@

 srcdir = @srcdir@
 VPATH = $(srcdir)
@@ -110,7 +111,7 @@ endif
  fi; \
  echo Testing $$loadfile; \
  stat=OK ; \
- mkdir --parents $(dir $@) ; \
+ ${MKDIR_P} $(dir $@) ; \
  $(emacs) -l ert -l $$loadfile \
   --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" ${WRITE_LOG}

--

[-- Attachment #2: 0001-Use-MKDIR_P-instead-of-mkdir-parents.patch --]
[-- Type: application/octet-stream, Size: 896 bytes --]

From ca62ed00537d29cfd52f72765fff8bd7ca731e4d Mon Sep 17 00:00:00 2001
From: "Aaron S. Hawley" <aaron.s.hawley@gmail.com>
Date: Fri, 26 Feb 2016 11:45:45 -0500
Subject: [PATCH] Use MKDIR_P instead of mkdir --parents

* test/Makefile.in (MKDIR_P): New variable.
(%.log): Use MKDIR_P instead of mkdir --parents
---
 test/Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/Makefile.in b/test/Makefile.in
index b5954df..beb3ff9 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -29,6 +29,7 @@
 ### Code:
 
 SHELL = @SHELL@
+MKDIR_P = @MKDIR_P@
 
 srcdir = @srcdir@
 VPATH = $(srcdir)
@@ -110,7 +111,7 @@ endif
 	fi; \
 	echo Testing $$loadfile; \
 	stat=OK ; \
-	mkdir --parents $(dir $@) ; \
+	${MKDIR_P} $(dir $@) ; \
 	$(emacs) -l ert -l $$loadfile \
 	  --eval "(ert-run-tests-batch-and-exit ${SELECTOR_ACTUAL})" ${WRITE_LOG}
 
-- 
2.3.0 (Apple Git-54)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#22822: Use MKDIR_P instead of mkdir --parents in test/Makefile.in
  2016-02-26 16:55 bug#22822: Use MKDIR_P instead of mkdir --parents in test/Makefile.in Aaron S. Hawley
@ 2016-02-28  3:02 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2016-02-28  3:02 UTC (permalink / raw
  To: 22822-done


Thanks.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-28  3:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-26 16:55 bug#22822: Use MKDIR_P instead of mkdir --parents in test/Makefile.in Aaron S. Hawley
2016-02-28  3:02 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.