blob: 7b1f373d475211bd400f5063730d6517788d15c1 [file] [log] [blame] [edit]
#!/bin/bash
# Copyright (c) 2012 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.
# Strip a given package and place the stripped version in
# /build/<board>/stripped-packages.
if [ ! -e /etc/debian_chroot ]; then
echo "Script needs to be run from within the chroot!" && exit 1
fi
SCRIPT_ROOT="/usr/lib/crosutils"
. "${SCRIPT_ROOT}/common.sh" || exit 1
export DEFAULT_INSTALL_MASK
python /usr/lib/devserver/strip_package.py "$@"