All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gitk: Makefile/install: force permissions when installing files and dirs
@ 2008-04-14  8:27 Gerrit Pape
  0 siblings, 0 replies; only message in thread
From: Gerrit Pape @ 2008-04-14  8:27 UTC (permalink / raw
  To: git, Paul Mackerras

The msg-files msgs/*.msg used to be installed with mode 755 although
they're not executables.  With this commit, files are forced to be
installed with mode 644, directories and executables with mode 755.
---
 Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index f90dfab..e1b6045 100644
--- a/Makefile
+++ b/Makefile
@@ -40,9 +40,9 @@ endif
 all:: gitk-wish $(ALL_MSGFILES)
 
 install:: all
-	$(INSTALL) gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
-	$(INSTALL) -d '$(DESTDIR_SQ)$(msgsdir_SQ)'
-	$(foreach p,$(ALL_MSGFILES), $(INSTALL) $p '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
+	$(INSTALL) -m 755 gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
+	$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(msgsdir_SQ)'
+	$(foreach p,$(ALL_MSGFILES), $(INSTALL) -m 644 $p '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
 
 uninstall::
 	$(foreach p,$(ALL_MSGFILES), $(RM) '$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) &&) true
-- 
1.5.5

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-14  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-14  8:27 [PATCH] gitk: Makefile/install: force permissions when installing files and dirs Gerrit Pape

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.