~ubuntu-branches/ubuntu/edgy/pysvn/edgy

« back to all changes in this revision

Viewing changes to Builder/builder_custom_init.sh

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-03-07 14:08:44 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060307140844-xey4ygiqdrexvq0s
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# TARGET is set by the ReleaseEngineering scripts
4
4
if [ -z "$TARGET" ]
5
5
then
6
 
        # set the ReleaseEngineering symbols in development mode
7
 
        case $(uname -s) in
8
 
        Darwin)
9
 
                . ../../ReleaseEngineering/MacOSX/software-version.inc
10
 
                ;;
11
 
        *)
12
 
                . ../../ReleaseEngineering/unix/software-version.inc\
13
 
                ;;
14
 
        esac
 
6
    # set the ReleaseEngineering symbols in development mode
 
7
    case $(uname -s) in
 
8
    Darwin)
 
9
        . ../../ReleaseEngineering/MacOSX/software-version.inc
 
10
        ;;
 
11
    *)
 
12
        . ../../ReleaseEngineering/unix/software-version.inc\
 
13
        ;;
 
14
    esac
15
15
fi
16
16
export WORKDIR=$(cd ..;pwd)
17
17
 
18
18
# default to 2.3 if no value in $1 and $2
19
19
export PY_MAJ=${1:-2}
20
20
export PY_MIN=${2:-3}
21
 
export PYCXX=${WORKDIR}/Import/pycxx_${PYCXXVER}
22
 
case $(uname -s) in
23
 
Darwin)
24
 
        export PYTHON=/usr/bin/python${PY_MAJ}.${PY_MIN}
25
 
        ;;
26
 
FreeBSD)
27
 
        export PYTHON=/usr/local/bin/python${PY_MAJ}.${PY_MIN}
28
 
        ;;
29
 
 
30
 
*)
31
 
        export PYTHON=/usr/bin/python${PY_MAJ}.${PY_MIN}
32
 
        ;;
33
 
esac
34
 
 
35
 
# prove the python version selected is as expected
36
 
${PYTHON} -c "import sys;print 'Info: Python Version %r' % sys.version"
 
21
 
 
22
export PYTHON=$( which python${PY_MAJ}.${PY_MIN} )
 
23
if [ -e "${PYTHON}" ]
 
24
then
 
25
    # prove the python version selected is as expected
 
26
    ${PYTHON} -c "import sys;print 'Info: Python Version %r' % sys.version"
 
27
else
 
28
    echo "Error: Cannot find python${PY_MAJ}.${PY_MIN} on the PATH"
 
29
fi