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

1 messages from 2005-09-14 to 2005-09-14. Participants: Peter Eriksen.
Thread: https://gitlist.dev/t/1796

## Peter Eriksen, 2005-09-14 10:41

Subject: [PATCH] According to the man page on Solaris the install command takes the -d option before all others
Message-ID: <vhpwtlkorrj.fsf@bohr.gbar.dtu.dk>
URL: https://gitlist.dev/e/vhpwtlkorrj.fsf%40bohr.gbar.dtu.dk

```
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:

```
