From b82a07f4c2fd8fa2f42d9ab1426a36debdc33a97 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Sun, 27 Aug 2023 11:07:32 +0800 Subject: [PATCH 1/2] update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 3980640a..c6cf6d0d 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ __debug_bin /data /custom /.custom +/run.sh From b34fb4bdb867f96845b4510034de17dce0ecbadc Mon Sep 17 00:00:00 2001 From: Michael Li Date: Sun, 27 Aug 2023 11:37:51 +0800 Subject: [PATCH 2/2] add run.sh --- run.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 run.sh diff --git a/run.sh b/run.sh new file mode 100755 index 00000000..c9600b8b --- /dev/null +++ b/run.sh @@ -0,0 +1,44 @@ +#!/bin/sh +# eg.1 : sh run.sh +# eg.2, push all release: sh run.sh push +# eg.3, push all release with dev branch: sh run.sh push dev + +function push { + if [ -n "$1" ]; then + echo "git push origin $1:$1" + git push origin $1:$1 + + echo "git push alimy $1:$1" + git push alimy $1:$1 + + echo "git push bitbus $1:$1" + git push bitbus $1:$1 + else + echo "git push origin dev:dev" + git push origin dev:dev + + echo "git push alimy r/paopao-ce:r/paopao-ce" + git push alimy r/paopao-ce:r/paopao-ce + + echo "git push bitbus r/paopao-ce-plus:r/paopao-ce-plus" + git push bitbus r/paopao-ce-plus:r/paopao-ce-plus + + echo "git push bitbus r/paopao-ce-pro:r/paopao-ce-pro" + git push bitbus r/paopao-ce-pro:r/paopao-ce-pro + + echo "git push bitbus r/paopao-ce-xtra:r/paopao-ce-xtra" + git push bitbus r/paopao-ce-xtra:r/paopao-ce-xtra + fi +} + +case $1 in +"push") + push $2 + ;; +"merge") + echo "merge command" + ;; +*) + push $2 + ;; +esac \ No newline at end of file