summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1aff6a0)
raw | patch | inline | side by side (parent: 1aff6a0)
author | Jeffrey C. Ollie <jeff@ocjtech.us> | |
Thu, 31 May 2007 19:20:32 +0000 (14:20 -0500) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 31 May 2007 19:50:30 +0000 (21:50 +0200) |
'install' will install files with permissions set to '0755' if the
permissions are not specified on the command line. Having the execute
bits set on non-executable content is not desireable. Specify mode
0644 for non-executable content as well as specify mode 0755 for
executable content (in case the defaults change or are different on
different systems). Also tell 'install' to preserve timestamps.
[ Updated to also do it when installing HTML files. --jonas ]
Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
permissions are not specified on the command line. Having the execute
bits set on non-executable content is not desireable. Specify mode
0644 for non-executable content as well as specify mode 0755 for
executable content (in case the defaults change or are different on
different systems). Also tell 'install' to preserve timestamps.
[ Updated to also do it when installing HTML files. --jonas ]
Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 57196b0b2b697f2e284f234064f724bb875bc64d..0e42de61f0c927ba77db66549828f52c34b7495f 100644 (file)
--- a/Makefile
+++ b/Makefile
install: all
mkdir -p $(DESTDIR)$(bindir) && \
for prog in $(PROGS); do \
- install $$prog $(DESTDIR)$(bindir); \
+ install -p -m 0755 $$prog $(DESTDIR)$(bindir); \
done
install-doc-man: doc-man
$(DESTDIR)$(mandir)/man5
for doc in $(MANDOC); do \
case "$$doc" in \
- *.1) install $$doc $(DESTDIR)$(mandir)/man1 ;; \
- *.5) install $$doc $(DESTDIR)$(mandir)/man5 ;; \
+ *.1) install -p -m 0644 $$doc $(DESTDIR)$(mandir)/man1 ;; \
+ *.5) install -p -m 0644 $$doc $(DESTDIR)$(mandir)/man5 ;; \
esac \
done
mkdir -p $(DESTDIR)$(docdir)/tig
for doc in $(HTMLDOC); do \
case "$$doc" in \
- *.html) install $$doc $(DESTDIR)$(docdir)/tig ;; \
+ *.html) install -p -m 0644 $$doc $(DESTDIR)$(docdir)/tig ;; \
esac \
done