Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added tag.sh, fixed some other script issues.
[ci skip]
  • Loading branch information
brixen committed Dec 21, 2015
1 parent fcd2a43 commit c000bce
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/configuration.sh
@@ -1,4 +1,4 @@
__dir__="$(cd $(dirname "$0") && pwd)"
__dir__="$(cd "$(dirname "$0")" && pwd)"

function rbx_git_directory {
echo "$__dir__/../.git"
Expand Down
5 changes: 4 additions & 1 deletion scripts/deploy.sh
@@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion scripts/package.sh
@@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion scripts/release.sh
@@ -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
Expand Down
17 changes: 17 additions & 0 deletions scripts/tag.sh
@@ -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.