script to set up client side sdk

This commit is contained in:
Kevin Darby committed 2018-11-28 14:26:55 -05:00
1 parent bba6da76fb
commit 7c1016d940
3 files changed
+47 -1

No files matched your search

+6 -1
View File
@@ -47,11 +47,16 @@
<ItemGroup>
<ProjectReference Include="../spark_api/spark_api.csproj"/>
</ItemGroup>
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="ResolveReferences">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" />
<BuildOutputInPackage Include="$(OutputPath)..\net471\libspark.dll"/>
</ItemGroup>
</Target>
<Target Name="copy_scripts" AfterTargets="PostBuildEvent">
<Copy SourceFiles="../../sdk/update_client_sdk_github.cmd" DestinationFolder="$(OutputPath)\" SkipUnchangedFiles="true" />
</Target>
</Project>
File renamed without changes.
+41
View File
@@ -0,0 +1,41 @@
#!/bin/bash
if [ "$#" -lt 2 ]; then
echo "update_github.sh <https://github.com/your_repo/spark_sdk.git> [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