| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 BUILDTYPE="${BUILDTYPE:-Debug}" | 7 BUILDTYPE="${BUILDTYPE:-Debug}" |
| 8 CHROME_SRC_DIR="${CHROME_SRC_DIR:-$(dirname -- $(readlink -fn -- "$0"))/..}" | 8 CHROME_SRC_DIR="${CHROME_SRC_DIR:-$(dirname -- $(readlink -fn -- "$0"))/..}" |
| 9 CHROME_OUT_DIR="${CHROME_SRC_DIR}/${CHROMIUM_OUT_DIR:-out}/${BUILDTYPE}" | 9 CHROME_OUT_DIR="${CHROME_SRC_DIR}/${CHROMIUM_OUT_DIR:-out}/${BUILDTYPE}" |
| 10 CHROME_SANDBOX_BUILD_PATH="${CHROME_OUT_DIR}/chrome_sandbox" | 10 CHROME_SANDBOX_BUILD_PATH="${CHROME_OUT_DIR}/chrome_sandbox" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 return $? | 32 return $? |
| 33 } | 33 } |
| 34 | 34 |
| 35 if [ ! -d "${CHROME_OUT_DIR}" ]; then | 35 if [ ! -d "${CHROME_OUT_DIR}" ]; then |
| 36 echo -n "${CHROME_OUT_DIR} does not exist. Use \"BUILDTYPE=Release ${0}\" " | 36 echo -n "${CHROME_OUT_DIR} does not exist. Use \"BUILDTYPE=Release ${0}\" " |
| 37 echo "If you are building in Release mode" | 37 echo "If you are building in Release mode" |
| 38 exit 1 | 38 exit 1 |
| 39 fi | 39 fi |
| 40 | 40 |
| 41 if [ ! -f "${CHROME_SANDBOX_BUILD_PATH}" ]; then | 41 if [ ! -f "${CHROME_SANDBOX_BUILD_PATH}" ]; then |
| 42 echo -n "Could not find ${CHROME_SANDBOX_BUILD_PATH}, " | 42 echo "Could not find ${CHROME_SANDBOX_BUILD_PATH}" |
| 43 echo "please make sure you build the chrome_sandbox target" | 43 echo -n "BUILDTYPE is $BUILDTYPE, use \"BUILDTYPE=<value> ${0}\" to override " |
| 44 echo "after you build the chrome_sandbox target" |
| 44 exit 1 | 45 exit 1 |
| 45 fi | 46 fi |
| 46 | 47 |
| 47 if [ ! -f "${CHROME_SANDBOX_INST_PATH}" ]; then | 48 if [ ! -f "${CHROME_SANDBOX_INST_PATH}" ]; then |
| 48 echo -n "Could not find ${CHROME_SANDBOX_INST_PATH}, " | 49 echo -n "Could not find ${CHROME_SANDBOX_INST_PATH}, " |
| 49 echo "installing it now." | 50 echo "installing it now." |
| 50 installsandbox | 51 installsandbox |
| 51 fi | 52 fi |
| 52 | 53 |
| 53 if [ ! -f "${CHROME_SANDBOX_INST_PATH}" ]; then | 54 if [ ! -f "${CHROME_SANDBOX_INST_PATH}" ]; then |
| (...skipping 12 matching lines...) Expand all Loading... |
| 66 fi | 67 fi |
| 67 else | 68 else |
| 68 echo "Your setuid sandbox is up to date" | 69 echo "Your setuid sandbox is up to date" |
| 69 if [ "${CHROME_DEVEL_SANDBOX}" != "${CHROME_SANDBOX_INST_PATH}" ]; then | 70 if [ "${CHROME_DEVEL_SANDBOX}" != "${CHROME_SANDBOX_INST_PATH}" ]; then |
| 70 echo -n "Make sure you have \"export " | 71 echo -n "Make sure you have \"export " |
| 71 echo -n "CHROME_DEVEL_SANDBOX=${CHROME_SANDBOX_INST_PATH}\" " | 72 echo -n "CHROME_DEVEL_SANDBOX=${CHROME_SANDBOX_INST_PATH}\" " |
| 72 echo "somewhere in your .bashrc" | 73 echo "somewhere in your .bashrc" |
| 73 echo "This variable is currently: ${CHROME_DEVEL_SANDBOX:-empty}" | 74 echo "This variable is currently: ${CHROME_DEVEL_SANDBOX:-empty}" |
| 74 fi | 75 fi |
| 75 fi | 76 fi |
| OLD | NEW |