update/sw-patch/scripts/make_patch.sh

21 lines
381 B
Bash
Executable File

#!/bin/bash
#
# Copyright (c) 2022 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null
SWPATCH_DIR=$SCRIPTPATH/..
# Set environment variables for python
export PYTHONPATH=$SWPATCH_DIR/cgcs-patch
export PYTHONDONTWRITEBYTECODE=true
# Run the patch_build tool
exec $SWPATCH_DIR/bin/make_patch "$@"