Makefile
changeset 543 77f7344600cb
parent 518 3dd43161fc0e
child 592 b472ec1324d1
equal deleted inserted replaced
542:5674fac0249d 543:77f7344600cb
   113 	umask 0117; \
   113 	umask 0117; \
   114 	if [ $$vmajor -gt 4 -o '(' $$vmajor -eq 4 -a $$vminor -ge 8 ')' ]; then \
   114 	if [ $$vmajor -gt 4 -o '(' $$vmajor -eq 4 -a $$vminor -ge 8 ')' ]; then \
   115 		mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \
   115 		mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \
   116 		install -m 640 .local/share/mc/bashrc $(HOME)/.local/share/mc/; \
   116 		install -m 640 .local/share/mc/bashrc $(HOME)/.local/share/mc/; \
   117 		cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext; \
   117 		cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext; \
       
   118 		{ \
       
   119 			echo 'default/*'; \
       
   120 			echo '    Open=file %f'; \
       
   121 			echo '    Edit=[ `du -m %f | { read size rest; echo $$size; }` -le 4 ] && e %f || echo Too large file for Emacs...'; \
       
   122 		} >>$(HOME)/.config/mc/mc.ext; \
   118 	else \
   123 	else \
   119 		mkdir -p $(HOME)/.mc; \
   124 		mkdir -p $(HOME)/.mc; \
   120 		install -m 640 .local/share/mc/bashrc $(HOME)/.mc; \
   125 		install -m 640 .local/share/mc/bashrc $(HOME)/.mc; \
   121 		install -m 640 .config/mc/mc.ext $(HOME)/.mc/bindings; \
   126 		install -m 640 .config/mc/mc.ext $(HOME)/.mc/bindings; \
   122 	fi
   127 	fi