diff --git a/src/client/spark_sdk/spark_sdk.csproj b/src/client/spark_sdk/spark_sdk.csproj index 2de7adb76..25141639b 100644 --- a/src/client/spark_sdk/spark_sdk.csproj +++ b/src/client/spark_sdk/spark_sdk.csproj @@ -47,11 +47,16 @@ - + + + + + + diff --git a/src/sdk/update_github.sh b/src/sdk/update_client_sdk_github.cmd similarity index 100% rename from src/sdk/update_github.sh rename to src/sdk/update_client_sdk_github.cmd diff --git a/src/sdk/update_server_sdk_github.sh b/src/sdk/update_server_sdk_github.sh new file mode 100644 index 000000000..71f771aa8 --- /dev/null +++ b/src/sdk/update_server_sdk_github.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +if [ "$#" -lt 2 ]; then + echo "update_github.sh [tag] [-push_params]" + echo "set tag to 'stage' if you don't want to push" + exit 0 +fi + +if [ "$2" == "stage" ]; then echo "STAGE ONLY"; fi + +git lfs install + +STAGE="/tmp/bts_staging" +if [ -d "$STAGE" ]; then + rm -rf $STAGE +fi +mkdir $STAGE +git clone --recurse-submodules "$1" $STAGE/spark_sdk +cp -L -r -f ./** $STAGE/spark_sdk/ +pushd $STAGE/spark_sdk + +#clean all the stuff we don't want in github +rm ./examples/md_publisher_example +rm ./examples/order_plugin_example.so +rm ./lib/data_files/cert_secure_logon.txt +rm -r ./externals/lib/libonixs* +rm -r ./externals/include/OnixS/ +rm -r ./externals/lib/celoxica/ +rm -r ./externals/include/celoxica/ + +if [ "$2" != "stage" ]; then + git status + git add . + git commit -m "spark_sdk update $2" + git tag "$2" + git push origin master --tags $3 + + popd + rm -rf $STAGE +fi +