| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Common constants for build scripts | 5 # Common constants for build scripts |
| 6 # This must evaluate properly for both /bin/bash and /bin/sh | 6 # This must evaluate properly for both /bin/bash and /bin/sh |
| 7 | 7 |
| 8 # All scripts should die on error unless commands are specifically excepted | 8 # All scripts should die on error unless commands are specifically excepted |
| 9 # by prefixing with '!' or surrounded by 'set +e' / 'set -e'. | 9 # by prefixing with '!' or surrounded by 'set +e' / 'set -e'. |
| 10 # TODO: Re-enable this once shflags is less prone to dying. | 10 # TODO: Re-enable this once shflags is less prone to dying. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 fi | 114 fi |
| 115 | 115 |
| 116 # Directory locations inside the dev chroot | 116 # Directory locations inside the dev chroot |
| 117 CHROOT_TRUNK_DIR="/home/$USER/trunk" | 117 CHROOT_TRUNK_DIR="/home/$USER/trunk" |
| 118 | 118 |
| 119 # Install make for portage ebuilds. Used by build_image and gmergefs. | 119 # Install make for portage ebuilds. Used by build_image and gmergefs. |
| 120 DEFAULT_INSTALL_MASK="/usr/include /usr/man /usr/share/man /usr/share/doc \ | 120 DEFAULT_INSTALL_MASK="/usr/include /usr/man /usr/share/man /usr/share/doc \ |
| 121 /usr/share/gtk-doc /usr/share/gtk-2.0 /usr/lib/gtk-2.0/include \ | 121 /usr/share/gtk-doc /usr/share/gtk-2.0 /usr/lib/gtk-2.0/include \ |
| 122 /usr/share/info /usr/share/aclocal /usr/lib/gcc /usr/lib/pkgconfig \ | 122 /usr/share/info /usr/share/aclocal /usr/lib/gcc /usr/lib/pkgconfig \ |
| 123 /usr/share/pkgconfig /usr/share/gettext /usr/share/readline /etc/runlevels \ | 123 /usr/share/pkgconfig /usr/share/gettext /usr/share/readline /etc/runlevels \ |
| 124 /usr/share/openrc /lib/rc *.a *.la /etc/init.d" | 124 /usr/share/openrc /lib/rc *.a *.la /etc/init.d /usr/lib/debug" |
| 125 | 125 |
| 126 FACTORY_INSTALL_MASK="/opt/google/chrome /opt/google/o3d /opt/netscape \ | 126 FACTORY_INSTALL_MASK="/opt/google/chrome /opt/google/o3d /opt/netscape \ |
| 127 /usr/lib/dri /usr/lib/python2.6/test /usr/share/chewing /usr/share/fonts \ | 127 /usr/lib/dri /usr/lib/python2.6/test /usr/share/chewing /usr/share/fonts \ |
| 128 /usr/share/ibus-pinyin /usr/share/libhangul /usr/share/locale \ | 128 /usr/share/ibus-pinyin /usr/share/libhangul /usr/share/locale \ |
| 129 /usr/share/m17n /usr/share/mime /usr/share/sounds /usr/share/tts \ | 129 /usr/share/m17n /usr/share/mime /usr/share/sounds /usr/share/tts \ |
| 130 /usr/share/X11 /usr/share/zoneinfo" | 130 /usr/share/X11 /usr/share/zoneinfo /usr/lib/debug" |
| 131 | 131 |
| 132 # Check to ensure not running old scripts | 132 # Check to ensure not running old scripts |
| 133 V_REVERSE='[7m' | 133 V_REVERSE='[7m' |
| 134 V_VIDOFF='[m' | 134 V_VIDOFF='[m' |
| 135 case "$(basename $0)" in | 135 case "$(basename $0)" in |
| 136 build_image.sh|build_platform_packages.sh|customize_rootfs.sh|make_chroot.sh) | 136 build_image.sh|build_platform_packages.sh|customize_rootfs.sh|make_chroot.sh) |
| 137 echo | 137 echo |
| 138 echo "$V_REVERSE============================================================" | 138 echo "$V_REVERSE============================================================" |
| 139 echo "=========================== WARNING ======================" | 139 echo "=========================== WARNING ======================" |
| 140 echo "============================================================$V_VIDOFF" | 140 echo "============================================================$V_VIDOFF" |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 402 |
| 403 # Setup var symlink. | 403 # Setup var symlink. |
| 404 if [ -h "${dev_image_root}/var" ]; then | 404 if [ -h "${dev_image_root}/var" ]; then |
| 405 sudo unlink "${dev_image_root}/var" | 405 sudo unlink "${dev_image_root}/var" |
| 406 elif [ -e "${dev_image_root}/var" ]; then | 406 elif [ -e "${dev_image_root}/var" ]; then |
| 407 die "${dev_image_root}/var should be a symlink if it exists" | 407 die "${dev_image_root}/var should be a symlink if it exists" |
| 408 fi | 408 fi |
| 409 | 409 |
| 410 sudo ln -s "${var_target}" "${dev_image_root}/var" | 410 sudo ln -s "${var_target}" "${dev_image_root}/var" |
| 411 } | 411 } |
| OLD | NEW |