diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-06-24 16:26:23 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-24 16:26:23 +1000 |
commit | 6da26870e0ae5acd6ff49a30ec2f6886b44d095e (patch) | |
tree | 850c71039563c16a5d563c47e7ba2ab645baf198 /install_with_python.sh | |
parent | 6925a799d04c6fa59dd2ddef1f5510f9bb7d17d1 (diff) | |
parent | 2610c05b5b95cc7036b3d6dfb894c6cfbdb68483 (diff) | |
download | samba-6da26870e0ae5acd6ff49a30ec2f6886b44d095e.tar.gz samba-6da26870e0ae5acd6ff49a30ec2f6886b44d095e.tar.bz2 samba-6da26870e0ae5acd6ff49a30ec2f6886b44d095e.zip |
Merge 2610c05b5b95cc7036b3d6dfb894c6cfbdb68483 as Samba-4.0alpha16
Diffstat (limited to 'install_with_python.sh')
-rw-r--r-- | install_with_python.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/install_with_python.sh b/install_with_python.sh new file mode 100644 index 0000000000..d7ae55da12 --- /dev/null +++ b/install_with_python.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +# this script installs a private copy of python in the same prefix as Samba + +if [ $# -lt 1 ]; then +cat <<EOF +Usage: install_with_python.sh PREFIX [CONFIGURE OPTIONS] +EOF +exit 1; +fi + +PREFIX="$1" +shift + +PATH=$PREFIX/python/bin:$PATH +export PATH + +VERSION="Python-2.6.5" + +do_install_python() { + mkdir -p python_install || exit 1 + rsync -avz samba.org::ftp/tridge/python/$VERSION.tar python_install || exit 1 + cd python_install || exit 1; + rm -rf $VERSION || exit 1 + tar -xf $VERSION.tar || exit 1 + cd $VERSION || exit 1 + ./configure --prefix=$PREFIX/python --enable-shared --disable-ipv6 || exit 1 + make || exit 1 + make install || exit 1 + cd ../.. || exit 1 + rm -rf python_install || exit 1 +} + +if ! test -d $PREFIX/python; then + # needs to be installed + do_install_python +fi + +`dirname $0`/configure --prefix=$PREFIX $@ || exit 1 +make -j || exit 1 +make install || exit 1 |