blob: 3f9a029a8add2e81c50f9f93cb82d03cf66ab077 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
die() {
echo "ERROR: $*"
exit 1
echo "Rebasing autotest/client folder for factory."
[ -d "${base_dir}/client" ] || die "Missing client in root: ${base_dir}"
rm -rf ${base_dir}/packages || die "Failed to wipe packages directory."
mv "${base_dir}/client/"* "${base_dir}" || die "Failed moving client folder."
rmdir "${base_dir}/client" || die "Failed removing client folder."
ln -s . "${base_dir}/client" || die "Failed creating symlink."