Fix errors when some utilities not present.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 01 Mar 2014 21:57:49 +0200
changeset 692 94abd8fa5462
parent 690 95db953511d6
child 693 638f5c819c90
Fix errors when some utilities not present.
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#*.}; \