scstadmin: Prevent manual installation if the scstadmin RPM has already been installed

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-11-19 17:11:59 +00:00
parent 2c1469a2d7
commit 59ca77e6fe

View File

@@ -69,6 +69,8 @@ all:
cd $(SCSTADMIN_DIR) && $(MAKE) $@
install:
@if [ -z "$(DESTDIR)" ] && rpm -q scstadmin >/dev/null 2>&1; then \
echo Error: the scstadmin RPM must be uninstalled first; false; fi
@if ! perl -MExtUtils::MakeMaker -e '' >/dev/null 2>&1; then \
echo Error: the Perl module ExtUtils::MakeMaker must be installed \
first; false; fi