Add setup_patch_repo.sh for patch-iso
This update adds the setup_patch_repo.sh script to starlingx/update for use by the patch-iso utility. This file was missed from initial seeding of StarlingX. Change-Id: I48b7caa2a41347ada6185e8d262d3b3d330dd37e Partial-Bug: 1863011 Signed-off-by: Don Penney <don.penney@windriver.com>
This commit is contained in:
parent
e9544b7de1
commit
05f4bcc83d
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018-2020 Wind River Systems, Inc.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
pushd `dirname $0` > /dev/null
|
SCRIPTPATH=$(dirname $(readlink -f $0))
|
||||||
SCRIPTPATH=`pwd`
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
CGCSPATCH_DIR=$SCRIPTPATH/../../cgcs-patch
|
CGCSPATCH_DIR=$SCRIPTPATH/../../cgcs-patch
|
||||||
|
|
||||||
# Source release-info
|
# Source release-info
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018-2020 Wind River Systems, Inc.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
SCRIPTPATH=$(dirname $(readlink -f $0))
|
||||||
|
CGCSPATCH_DIR=$SCRIPTPATH/../../cgcs-patch
|
||||||
|
|
||||||
|
# Source release-info
|
||||||
|
. $SCRIPTPATH/../../../utilities/utilities/build-info/release-info.inc
|
||||||
|
export PLATFORM_RELEASE
|
||||||
|
|
||||||
|
# Set environment variables for python
|
||||||
|
export PYTHONPATH=$CGCSPATCH_DIR/cgcs-patch
|
||||||
|
export PYTHONDONTWRITEBYTECODE=true
|
||||||
|
|
||||||
|
# Run the setup_patch_repo tool
|
||||||
|
exec $CGCSPATCH_DIR/bin/setup_patch_repo "$@"
|
||||||
|
|
Loading…
Reference in New Issue