#!/bin/sh # This is the configuration script for Rubber. # As a part of Rubber, it is covered by the GPL (see COPYING for details). # (c) Emmanuel Beffara, 2002--2006 # this is the only place where there is version number: version=1.1 release=1 python="" prefix=/usr/local bindir='${prefix}/bin' datadir='${prefix}/share' moddir='${datadir}/rubber' mandir='${prefix}/man' infodir='${prefix}/info' ### First, parse the command line. while test -n "$1"; do case $1 in --help) cat <&2 esac shift done ### Check that we can install the program. if test -z "$python"; then for cmd in python2.2 python2 python; do if which $cmd > /dev/null 2>&1; then python=$cmd break fi done if test -z "$python"; then cat < /dev/null 2>&1; then echo "I will use $python as the interpreter." else cat < settings.py <