[hackers] [libutf][PATCH 1/2] set file permissions when installing

From: Alexander Krotov <ilabdsf_AT_yandex.ru>
Date: Sun, 15 May 2016 07:18:29 +0300

Without chmod, resulting permissions depend on umask
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index 8019b56..7cd2daa 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -26,11 +26,15 @@ install: $(LIB) $(INC) $(MAN)
 	_AT_echo @ install libutf to $(DESTDIR)$(PREFIX)
 	_AT_mkdir -p $(DESTDIR)$(PREFIX)/lib
 	_AT_cp $(LIB) $(DESTDIR)$(PREFIX)/lib/$(LIB)
+	_AT_chmod 644 $(DESTDIR)$(PREFIX)/lib/$(LIB)
 	_AT_mkdir -p $(DESTDIR)$(PREFIX)/include
 	_AT_cp $(INC) $(DESTDIR)$(PREFIX)/include/$(INC)
+	_AT_chmod 644 $(DESTDIR)$(PREFIX)/include/$(INC)
 	_AT_mkdir -p $(DESTDIR)$(PREFIX)/share/man/man3
 	_AT_cp rune.3 $(DESTDIR)$(PREFIX)/share/man/man3/rune.3
+	_AT_chmod 644 $(DESTDIR)$(PREFIX)/share/man/man3/rune.3
 	_AT_sed 's/$$UNICODE/$(UNICODE)/g' isalpharune.3 > $(DESTDIR)$(PREFIX)/share/man/man3/isalpharune.3
+	_AT_chmod 644 $(DESTDIR)$(PREFIX)/share/man/man3/isalpharune.3
 
 uninstall:
 	_AT_echo @ uninstall libutf from $(DESTDIR)$(PREFIX)
-- 
2.8.1
Received on Sun May 15 2016 - 06:18:29 CEST

This archive was generated by hypermail 2.3.0 : Sun May 15 2016 - 06:24:12 CEST