@matheusbsbs / matheus-bagliano / commits / dfa65bc28e
Fork 0

gitk: Makefile/install: force permissions when installing files and dirs

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. Signed-off-by: Paul Mackerras <paulus@samba.org>

Gerrit Pape committed Apr 14, 2008 at 08:27 UTC dfa65bc28ea4bda04072f02acd0dca8c75e94990
1 file changed +3 -3
Makefile
+3 -3
@@ -40,9 +40,9 @@ endif
40 all:: gitk-wish $(ALL_MSGFILES)
41
42 install:: all
43 - $(INSTALL) gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
44 - $(INSTALL) -d '$(DESTDIR_SQ)$(msgsdir_SQ)'
45 - $(foreach p,$(ALL_MSGFILES), $(INSTALL) $p '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
43 + $(INSTALL) -m 755 gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
44 + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(msgsdir_SQ)'
45 + $(foreach p,$(ALL_MSGFILES), $(INSTALL) -m 644 $p '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
46
47 uninstall::
48 $(foreach p,$(ALL_MSGFILES), $(RM) '$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) &&) true