Merge my config for mc.ext with system wide as only ~/.config/mc/mc.ext
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 06 Apr 2012 21:29:39 +0300
changeset 328 3e80c4af5ab6
parent 327 a8face3f062f
child 329 5c0a22da5ef3
Merge my config for mc.ext with system wide as only ~/.config/mc/mc.ext loaded. See bug: https://www.midnight-commander.org/ticket/2772
Makefile
--- 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; \