update/extras/scripts/patch_build.sh
David Sullivan c3cf35e1ee patch_build.sh fails with path errors
The patch_build script fails as the paths for release-info.inc and
patch_build are incorrect.

With commit d566e09 (Story 2002801) the patch scripts were relocated
from stx-utils to stx-update. Various paths in the scripts were not
updated to reflect their new locations.

This change corrects those paths.

Change-Id: I6ebe57476f01d6ae68312bf98e8a706047d4a695
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
Story: 2003449
Task: 24652
2018-08-16 17:54:05 -04:00

20 lines
431 B
Bash
Executable File

#!/bin/bash
pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null
CGCSPATCH_DIR=$SCRIPTPATH/../../cgcs-patch
# Source release-info
. $SCRIPTPATH/../../../stx-integ/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 patch_build tool
exec $CGCSPATCH_DIR/bin/patch_build "$@"