ia64/xen-unstable

view tools/python/get-path @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents b8fa4a11f715
children
line source
1 #! /usr/bin/env bash
2 set -e
4 check () {
5 set +e
6 p=`type -p python$v`
7 r=$?
8 set -e
9 if [ $r = 0 ]; then
10 echo >&2 "${0##*/}: will use #!$p for python programs"
11 printf "%s\n" "$p"
12 exit 0
13 fi
14 }
16 v="$(python -V 2>&1)"
17 v="${v#* }"
18 check
19 v="${v%.*}"
20 check
21 echo >&2 'python version not determined, will use env to find python at runtime'
22 printf "/usr/bin/env python\n"