DORMANTno replies

[PATCH] According to the man page on Solaris the install command takes the -d option before all others

From: Peter Eriksen <hidden>
Date: 2016-06-15 22:42:06
Subsystem: kernel build + files below scripts/ (unless maintained elsewhere), the rest · Maintainers: Nathan Chancellor, Nicolas Schier, Linus Torvalds

Hello,

I'm new to this whole way of developing, and I'm still a bit confused
about the tools and the workflow.  I'm trying to port Git to Solaris, and
it seems that others are working on this as well, so this post is mostly
a request to share those Solaris patches with me.  The patch below
doesn't port git to Solaris, but fixes a small problem for me on the way.
I tested it on GNU install and it seems to work.  If this patch doesn't
apply at all feel free to edit the two lines by hand.

Regards,

Peter

=================

 /usr/sbin/install -d | -i [-m mode] [-u user] [-g group]  [-
     o] [-s] dirx...

Fix the Makefile accordingly.

---

 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

27ee13ef78c0a25acc1b8dce508b49c0fc729e41
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -293,12 +293,12 @@ check:
 ### Installation rules
 
 install: $(PROGRAMS) $(SCRIPTS)
-       $(INSTALL) -m755 -d $(DESTDIR)$(bindir)
+       $(INSTALL) -d -m755 $(DESTDIR)$(bindir)
        $(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
        $(INSTALL) git-revert $(DESTDIR)$(bindir)/git-cherry-pick
        sh ./cmd-rename.sh $(DESTDIR)$(bindir)
        $(MAKE) -C templates install
-       $(INSTALL) -m755 -d $(DESTDIR)$(GIT_PYTHON_DIR)
+       $(INSTALL) -d -m755 $(DESTDIR)$(GIT_PYTHON_DIR)
        $(INSTALL) $(PYMODULES) $(DESTDIR)$(GIT_PYTHON_DIR)
 
 install-doc:
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help