diff options
author | Phie <phie@phie.ovh> | 2020-01-17 17:54:42 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2020-01-17 17:54:42 +0300 |
commit | e93653cdc0e0fb7b2a82023b55924edd507dd9ec (patch) | |
tree | c1b13c98ab2073c5135c903cd3b2eadc4e83d31d | |
parent | b0122e339edff952fc7d6fc07a3f509befbbc247 (diff) |
new to_stable_branch script
-rw-r--r-- | to_stable_branch.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/to_stable_branch.sh b/to_stable_branch.sh index 281ac1a..28a22bc 100644 --- a/to_stable_branch.sh +++ b/to_stable_branch.sh @@ -1,9 +1,11 @@ #!/bin/bash - +version=$(sed -n -e 's/.*<version>\(.*\)<\/version>.*/\1/p' appinfo/info.xml) git branch -d stable git push origin --delete stable git checkout master git checkout -b stable git push origin stable +git checkout -b stable-$version +git push origin stable-$version git checkout master |