#!/bin/sh # configure file for Pluvo echo -n 'Checking for Python... ' if ! which python > /dev/null 2>&1 then echo no echo echo 'Error: requires Python 2.4+' echo 'You can install it from http://www.python.org/' exit 1 else echo yes fi echo -n 'Checking for Python 2.4+... ' python -c " import sys if sys.version_info < (2, 4): current = sys.version.split()[0] print 'no' print print 'Error: requires Python 2.4+. You have %s' % current sys.exit(1) else: print 'yes' print print 'Congratulations, you have Python 2.4+' print 'You are now ready to run make and make install' " && mv Makefile.src Makefile # [EOF]