Makefile
changeset 328 3e80c4af5ab6
parent 324 e30f2ac488aa
child 329 5c0a22da5ef3
--- a/Makefile	Fri Apr 06 20:33:03 2012 +0300
+++ b/Makefile	Fri Apr 06 21:29:39 2012 +0300
@@ -96,13 +96,14 @@
 	vmajor=$${v%%.*}; \
 	vminor=$${v#*.}; \
 	vminor=$${vminor%.*}; \
+	umask 0117; \
 	if [ $$vmajor -gt 4 -o '(' $$vmajor -eq 4 -a $$vminor -ge 8 ')' ]; then \
 		mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \
 		install -m 640 .local/share/mc/bashrc $(HOME)/.local/share/mc/; \
 		if [ '$(host_os)' = 'cygwin' ]; then \
-			install -m 640 .config/mc/mc.ext.cygwin $(HOME)/.config/mc/mc.ext; \
+			cat .config/mc/mc.ext.cygwin /etc/mc/mc.ext > $(HOME)/.local/share/mc/mc.ext; \
 		else \
-			install -m 640 .config/mc/mc.ext $(HOME)/.config/mc/mc.ext; \
+			cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.local/share/mc/mc.ext; \
 		fi; \
 	else \
 		mkdir -p $(HOME)/.mc; \