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