Skip to content
Permalink
Browse files
Added tag.sh, fixed some other script issues.
[ci skip]
  • Loading branch information
brixen committed Dec 21, 2015
1 parent fcd2a43 commit c000bce729134b406fdbbc82fbc632ceb50008eb
Showing with 26 additions and 4 deletions.
  1. +1 −1 scripts/configuration.sh
  2. +4 −1 scripts/deploy.sh
  3. +2 −1 scripts/package.sh
  4. +2 −1 scripts/release.sh
  5. +17 −0 scripts/tag.sh
@@ -1,4 +1,4 @@
__dir__="$(cd $(dirname "$0") && pwd)"
__dir__="$(cd "$(dirname "$0")" && pwd)"

function rbx_git_directory {
echo "$__dir__/../.git"
@@ -1,9 +1,12 @@
#!/bin/bash

__dir__="$(cd $(dirname "$0") && pwd)"
__dir__="$(cd "$(dirname "$0")" && pwd)"

# shellcheck source=scripts/configuration.sh
source "$__dir__/configuration.sh"
# shellcheck source=scripts/aws.sh
source "$__dir__/aws.sh"
# shellcheck source=scripts/io.sh
source "$__dir__/io.sh"

function rbx_release_bucket {
@@ -1,7 +1,8 @@
#!/bin/bash

__dir__="$(cd $(dirname "$0") && pwd)"
__dir__="$(cd "$(dirname "$0")" && pwd)"

# shellcheck source=scripts/configuration.sh
source "$__dir__/configuration.sh"

function rbx_digest_file {
@@ -1,7 +1,8 @@
#!/bin/bash

__dir__="$(cd $(dirname "$0") && pwd)"
__dir__="$(cd "$(dirname "$0")" && pwd)"

# shellcheck source=scripts/configuration.sh
source "$__dir__/configuration.sh"

rbx_write_revision_file
@@ -0,0 +1,17 @@
#!/bin/bash

__dir__="$(cd "$(dirname "$0")" && pwd)"

# shellcheck source=scripts/configuration.sh
source "$__dir__/configuration.sh"

IFS="." read -r -a array <<< "$(rbx_revision_version)"

let major=${array[0]}
let minor=${array[1]}+1

version="${major}.${minor}"
message="\"Version $version ($(date +"%F"))\""

echo Tagging "v$version" as "$message"
git tag -a -m "$message" "v$version"

0 comments on commit c000bce

Please sign in to comment.