diff -r b491e9c375e7 -r 4fdd8bd3d0a4 Makefile --- a/Makefile Fri Jan 08 00:00:03 2021 +0200 +++ b/Makefile Fri Jan 08 00:04:16 2021 +0200 @@ -154,26 +154,15 @@ ln -s ~/.xinitrc ~/.xsession rm -f ~/.bash_profile cp ~/.bashrc ~/.bash_profile - command -v /usr/bin/mc || exit 0; \ - v=`/usr/bin/mc --version | sed 's|.*\([0-9]\+\.[0-9]\+\.[0-9]\+\)$$|\1|;q'`; \ - vmajor=$${v%%.*}; \ - vminor=$${v#*.}; \ - vminor=$${vminor%.*}; \ - if [ $$vmajor -gt 4 -o '(' $$vmajor -eq 4 -a $$vminor -ge 8 ')' ]; then \ - mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \ - umask 0117; \ - $(INSTALL_DATA) .local/share/mc/bashrc $(HOME)/.local/share/mc/; \ - cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext; \ - { \ - echo 'default/*'; \ - echo ' Open=file %f'; \ - echo ' Edit=[ `du -m %f | { read size rest; echo $$size; }` -le 4 ] && e %f || echo Too large file for Emacs...'; \ - } >>$(HOME)/.config/mc/mc.ext; \ - else \ - mkdir -p $(HOME)/.mc; \ - $(INSTALL_DATA) .local/share/mc/bashrc $(HOME)/.mc; \ - $(INSTALL_DATA) .config/mc/mc.ext $(HOME)/.mc/bindings; \ - fi + mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/; \ + umask 0117; \ + $(INSTALL_DATA) .local/share/mc/bashrc $(HOME)/.local/share/mc/; \ + cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext; \ + { \ + echo 'default/*'; \ + echo ' Open=file %f'; \ + echo ' Edit=[ `du -m %f | { read size rest; echo $$size; }` -le 4 ] && e %f || echo Too large file for Emacs...'; \ + } >>$(HOME)/.config/mc/mc.ext ifneq '' '$(filter $(host_os),cygwin linux)' if command -v file 1>/dev/null; then \ $(INSTALL_DATA) .magic $(HOME); \