From b689577aa61c9a12490d85c9e161493be9ce04d8 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Tue, 25 May 2010 17:47:51 -0700 Subject: [PATCH] Adds symlink for aterm in /usr/local for xterm. TEST=Tested with developer build and verified xterm shortcut works correctly Review URL: http://codereview.chromium.org/2163004 --- build_image | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build_image b/build_image index fbad19a4d3..7bd52cf2d0 100755 --- a/build_image +++ b/build_image @@ -221,9 +221,16 @@ create_developer_image() { # The ldd tool is a useful shell script but lives in glibc; just copy it. sudo cp -a "$(which ldd)" "${root_dev_dir}/usr/bin" + # TODO: Temporarily create fake xterm symlink until we do proper xinitrc + local aterm="$root_fs_dir/usr/local/bin/aterm" + if [[ -f "${aterm}" ]]; then + sudo chmod 0755 "$aterm" + sudo ln -s aterm "${root_fs_dir}/usr/local/bin/xterm" + fi + # If vim is installed, then a vi symlink would probably help. - if [[ -x "${ROOT_FS_DIR}/usr/local/bin/vim" ]]; then - sudo ln -sf vim "${ROOT_FS_DIR}/usr/local/bin/vi" + if [[ -x "${root_fs_dir}/usr/local/bin/vim" ]]; then + sudo ln -sf vim "${root_fs_dir}/usr/local/bin/vi" fi # Check that the image has been correctly created. Only do it if not