View | Details | Raw Unified | Return to bug 261642
Collapse All | Expand All

(-)b/cipd (+3 lines)
Lines 21-26 case "${UNAME}" in Link Here
21
  linux)
21
  linux)
22
    OS="${UNAME}"
22
    OS="${UNAME}"
23
    ;;
23
    ;;
24
  freebsd)
25
    OS="${UNAME}"
26
    ;;
24
  cygwin*)
27
  cygwin*)
25
    OS=windows
28
    OS=windows
26
    CYGWIN=true
29
    CYGWIN=true
(-)b/gclient (-3 / +3 lines)
Lines 28-38 PATH=$PATH:$base_dir Link Here
28
28
29
if [[ $GCLIENT_PY3 == 1 ]]; then
29
if [[ $GCLIENT_PY3 == 1 ]]; then
30
  # Explicitly run on Python 3
30
  # Explicitly run on Python 3
31
  PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/gclient.py" "$@"
31
  PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/gclient.py" "$@"
32
elif [[ $GCLIENT_PY3 == 0 ]]; then
32
elif [[ $GCLIENT_PY3 == 0 ]]; then
33
  # Explicitly run on Python 2
33
  # Explicitly run on Python 2
34
  PYTHONDONTWRITEBYTECODE=1 exec vpython "$base_dir/gclient.py" "$@"
34
  PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"
35
else
35
else
36
  # Run on Python 3, allows default to be flipped.
36
  # Run on Python 3, allows default to be flipped.
37
  PYTHONDONTWRITEBYTECODE=1 exec vpython3 "$base_dir/gclient.py" "$@"
37
  PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/gclient.py" "$@"
38
fi
38
fi
(-)b/gclient.py (+1 lines)
Lines 1277-1282 _PLATFORM_MAPPING = { Link Here
1277
  'linux': 'linux',
1277
  'linux': 'linux',
1278
  'win32': 'win',
1278
  'win32': 'win',
1279
  'aix6': 'aix',
1279
  'aix6': 'aix',
1280
  'freebsd' : 'freebsd',
1280
}
1281
}
1281
1282
1282
1283
(-)b/gclient_utils.py (+2 lines)
Lines 748-753 def GetMacWinAixOrLinux(): Link Here
748
    return 'mac'
748
    return 'mac'
749
  elif sys.platform.startswith('aix'):
749
  elif sys.platform.startswith('aix'):
750
    return 'aix'
750
    return 'aix'
751
  elif sys.platform.startswith('freebsd'):
752
    return 'freebsd'
751
  raise Error('Unknown platform: ' + sys.platform)
753
  raise Error('Unknown platform: ' + sys.platform)
752
754
753
755

Return to bug 261642