straighten up readme and github scripts
This commit is contained in:
1 parent
0f68a7f56b
commit
bba6da76fb
3 files changed
+31
-25
No files matched your search
+24
-11
@@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -lt 2 ]; then
|
||||
echo "update_github.sh <https://github.com/your_repo/spark_sdk.git> <tag> [-push_params]"
|
||||
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"
|
||||
@@ -12,17 +15,27 @@ if [ -d "$STAGE" ]; then
|
||||
rm -rf $STAGE
|
||||
fi
|
||||
mkdir $STAGE
|
||||
git clone --recurse-submodules $1 $STAGE/spark_sdk
|
||||
cp -rL ./* $STAGE/spark_sdk/
|
||||
git clone --recurse-submodules "$1" $STAGE/spark_sdk
|
||||
cp -L -r -f ./** $STAGE/spark_sdk/
|
||||
pushd $STAGE/spark_sdk
|
||||
|
||||
#push updates
|
||||
git status
|
||||
git add .
|
||||
git commit -m "spark_sdk update $2"
|
||||
git tag $2
|
||||
git push origin master --tags $3
|
||||
#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/
|
||||
|
||||
popd
|
||||
rm -rf $STAGE
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user