From 15513301f9274542ab949938b77642e5859cd4b5 Mon Sep 17 00:00:00 2001 From: crynobone Date: Mon, 9 Mar 2015 09:59:04 +0800 Subject: [PATCH] Update subsplit. Signed-off-by: crynobone --- .gitignore | 3 +++ build/subsplit-basic.sh | 9 +++++++-- build/subsplit-full.sh | 9 +++++++-- build/subsplit-tag.sh | 16 ++++++++++++++++ 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100755 build/subsplit-tag.sh diff --git a/.gitignore b/.gitignore index 19aa429..3b201a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ # Composer composer.lock vendor/* + +# Build +.subsplit/ diff --git a/build/subsplit-basic.sh b/build/subsplit-basic.sh index 19b780e..a9e9860 100755 --- a/build/subsplit-basic.sh +++ b/build/subsplit-basic.sh @@ -1,6 +1,11 @@ #!/bin/sh -git subsplit init git@github.com:orchestral/support.git + +if [ -d .subsplit ]; then + git subsplit update +else + git subsplit init git@github.com:orchestral/support.git +fi + git subsplit publish --heads="master 3.0" --no-tags src/Facades:git@github.com:orchestral/support-facades.git git subsplit publish --heads="master 3.0" --no-tags src/Providers:git@github.com:orchestral/support-providers.git git subsplit publish --heads="master 2.1 2.2 3.0" --no-tags src/Support:git@github.com:orchestral/support-core.git -rm -rf .subsplit/ diff --git a/build/subsplit-full.sh b/build/subsplit-full.sh index 4076434..85c66f1 100755 --- a/build/subsplit-full.sh +++ b/build/subsplit-full.sh @@ -1,6 +1,11 @@ #!/bin/sh -git subsplit init git@github.com:orchestral/support.git + +if [ -d .subsplit ]; then + git subsplit update +else + git subsplit init git@github.com:orchestral/support.git +fi + git subsplit publish --heads="master 3.0" src/Facades:git@github.com:orchestral/support-facades.git git subsplit publish --heads="master 3.0" src/Providers:git@github.com:orchestral/support-providers.git git subsplit publish --heads="master 2.1 2.2 3.0" src/Support:git@github.com:orchestral/support-core.git -rm -rf .subsplit/ diff --git a/build/subsplit-tag.sh b/build/subsplit-tag.sh new file mode 100755 index 0000000..61aed07 --- /dev/null +++ b/build/subsplit-tag.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "No argument supplied"; + exit 1; +fi + +if [ -d .subsplit ]; then + git subsplit update +else + git subsplit init git@github.com:orchestral/support.git +fi + +git subsplit publish --heads="master 3.0" --tags=$1 src/Facades:git@github.com:orchestral/support-facades.git +git subsplit publish --heads="master 3.0" --tags=$1 src/Providers:git@github.com:orchestral/support-providers.git +git subsplit publish --heads="master 2.1 2.2 3.0" --tags=$1 src/Support:git@github.com:orchestral/support-core.git