]> git.pld-linux.org Git - projects/setup.git/commitdiff
make install: use same permissions as make dist does
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 20 Nov 2018 09:50:24 +0000 (11:50 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 20 Nov 2018 09:50:24 +0000 (11:50 +0200)
Makefile

index a345d66438c09ff17ccc3b6a2f4ca2bae69ab19b..8f00aa72301f9187377c8ec7dbee516dbb24ee72 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,11 +50,11 @@ install: $(BIN_FILES)
        $(INSTALL) -d $(DESTDIR)/$(ENVDIR)
        $(INSTALL) -d $(DESTDIR)/$(SHRCDIR)
        $(INSTALL) $(BIN_FILES) $(DESTDIR)/$(SBINDIR)
-       cd etc; $(INSTALL) $(ETC_FILES) $(DESTDIR)/$(ETCDIR)
+       cd etc; $(INSTALL) -m644 $(ETC_FILES) $(DESTDIR)/$(ETCDIR)
        ln -sf /proc/self/mounts $(DESTDIR)/$(ETCDIR)/mtab
-       cd etc/profile.d; $(INSTALL) $(PROFILE_FILES) $(DESTDIR)/$(PROFILEDIR)
-       cd etc/env.d; $(INSTALL) $(ENV_FILES) $(DESTDIR)/$(ENVDIR)
-       cd etc/shrc.d; $(INSTALL) $(SHRC_FILES) $(DESTDIR)/$(SHRCDIR)
+       cd etc/profile.d; $(INSTALL) -m755 $(PROFILE_FILES) $(DESTDIR)/$(PROFILEDIR)
+       cd etc/env.d; $(INSTALL) -m644 $(ENV_FILES) $(DESTDIR)/$(ENVDIR)
+       cd etc/shrc.d; $(INSTALL) -m644 $(SHRC_FILES) $(DESTDIR)/$(SHRCDIR)
 
 dist: changelog clean
        $(INSTALL) -d setup-$(VERSION)/etc/profile.d
This page took 0.172807 seconds and 4 git commands to generate.