Files
xen/tools/tests/regression/scripts/build_python.sh
T
Keir Fraser 00ee63bf97 tools/tests/regression/: Fix some paths and scripts.
o scripts and Makefile are mostly location independent now
  (exception XEN_ROOT in Makefile)
o use of $() instead of ${} in Makefile

From: Andreas Florath <xen@flonatel.org>
Signed-off-by: Keir Fraser <Keir.Fraser@eu.citrix.com>
2009-08-02 12:22:03 +01:00

25 lines
577 B
Bash

#!/bin/bash
#
# This script builds python in the dir
# installed/python-${DEST} from package downloads/Python-{PKG_VERS}.tgz
#
set -e
REG_TEST_DIR=$1
DEST=$2
PKG_VERS=$3
SUB_MAKES_MINUS_J=-j4
BUILD_DIR=${REG_TEST_DIR}/build
mkdir -p ${BUILD_DIR}
(cd ${BUILD_DIR} && tar -xf ${REG_TEST_DIR}/downloads/Python-$PKG_VERS.tgz)
(cd ${BUILD_DIR}/Python-$PKG_VERS &&
./configure --enable-shared --enable-ipv6 --without-cxx \
--with-threads --prefix=${REG_TEST_DIR}/installed/python-$DEST &&
make ${SUB_MAKES_MINUS_J} &&
make install)
rm -fr ${BUILD_DIR}/Python-$PKG_VERS