diff --git a/extras/scripts/make_patch.sh b/extras/scripts/make_patch.sh new file mode 100755 index 00000000..3a645545 --- /dev/null +++ b/extras/scripts/make_patch.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +pushd `dirname $0` > /dev/null +SCRIPTPATH=`pwd` +popd > /dev/null + +# CGCSPATCH_DIR=$MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/patching/recipes-common/cgcs-patch +CGCSPATCH_DIR=$SCRIPTPATH/../../middleware/patching/recipes-common/cgcs-patch + +# Set environment variables for python +export PYTHONPATH=$CGCSPATCH_DIR/cgcs-patch +export PYTHONDONTWRITEBYTECODE=true + +# Run the patch_build tool +exec $CGCSPATCH_DIR/bin/make_patch "$@" + diff --git a/extras/scripts/modify_patch.sh b/extras/scripts/modify_patch.sh new file mode 100755 index 00000000..91cdff2c --- /dev/null +++ b/extras/scripts/modify_patch.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +pushd `dirname $0` > /dev/null +SCRIPTPATH=`pwd` +popd > /dev/null + +# CGCSPATCH_DIR=$MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/patching/recipes-common/cgcs-patch +CGCSPATCH_DIR=$SCRIPTPATH/../../middleware/patching/recipes-common/cgcs-patch + +# Set environment variables for python +export PYTHONPATH=$CGCSPATCH_DIR/cgcs-patch +export PYTHONDONTWRITEBYTECODE=true + +# Run the patch_build tool +exec $CGCSPATCH_DIR/bin/modify_patch "$@" + diff --git a/extras/scripts/patch_build.sh b/extras/scripts/patch_build.sh new file mode 100755 index 00000000..e1f4cd00 --- /dev/null +++ b/extras/scripts/patch_build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +CGCSPATCH_DIR=$MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/patching/recipes-common/cgcs-patch + +# Source release-info +. $MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/recipes-common/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 "$@" + diff --git a/extras/scripts/query_patch.sh b/extras/scripts/query_patch.sh new file mode 100755 index 00000000..be89ce30 --- /dev/null +++ b/extras/scripts/query_patch.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +pushd `dirname $0` > /dev/null +SCRIPTPATH=`pwd` +popd > /dev/null + +# CGCSPATCH_DIR=$MY_REPO/addons/wr-cgcs/layers/cgcs/middleware/patching/recipes-common/cgcs-patch +CGCSPATCH_DIR=$SCRIPTPATH/../../middleware/patching/recipes-common/cgcs-patch + +# Set environment variables for python +export PYTHONPATH=$CGCSPATCH_DIR/cgcs-patch +export PYTHONDONTWRITEBYTECODE=true + +# Run the patch_build tool +exec $CGCSPATCH_DIR/bin/query_patch "$@" +