# HG changeset patch # User Oleksandr Gavenko # Date 1393703869 -7200 # Node ID 94abd8fa54626e9a7b6509cc042230466ed9718a # Parent 95db953511d693804bbd5b2aa82540e4aaa64801 Fix errors when some utilities not present. diff -r 95db953511d6 -r 94abd8fa5462 Makefile --- a/Makefile Thu Jan 16 11:21:54 2014 +0200 +++ b/Makefile Sat Mar 01 21:57:49 2014 +0200 @@ -85,6 +85,7 @@ done chmod 700 ~/.gnupg/ chmod a+x ~/.fvwm/FvwmKbdd.pl + command -v fvwm || exit 0; \ for f in /etc/xdg/menus/*.menu; do \ [ -f "$$f" ] || continue; \ fname=$${f%.menu}; \ @@ -115,6 +116,7 @@ ln -s ~/.xinitrc ~/.xsession rm -f ~/.bash_profile ln -s ~/.bashrc ~/.bash_profile + command -v mc || exit 0; \ v=`mc --version | sed 's|.*\([0-9]\+\.[0-9]\+\.[0-9]\+\)$$|\1|;q'`; \ vmajor=$${v%%.*}; \ vminor=$${v#*.}; \