Commit 37574155 authored by Carlos Juliano Viana's avatar Carlos Juliano Viana
Browse files

Adicionando a revisão do rockspec ao gerar uma nova release

[SOMA-4310]
[SOMA-4300]
parent d7d3469e
......@@ -15,6 +15,7 @@ fi
RELEASE=$1
SNAPSHOT=$2
ROCKSPEC_REVISION=1
checkIsMaster()
{
......@@ -56,7 +57,7 @@ renameRockSpecs()
stageRockSpecs()
{
# Acrescenta os removidos
# Acrescenta os removidos
git status | grep "deleted" | awk '{print "git add "$2}' | sh -
# Acrescenta os novos
git add *.rockspec
......@@ -66,13 +67,14 @@ stageRockSpecs()
releaseVersion()
{
echo "[..] release version $RELEASE..."
changeRockSpecs $RELEASE
renameRockSpecs $RELEASE
newVersion="$RELEASE-$ROCKSPEC_REVISION"
changeRockSpecs $newVersion
renameRockSpecs $newVersion
stageRockSpecs
git commit -m "[sgarest-daemon release] prepare release $RELEASE" && \
git tag -a $RELEASE -m "Release version $RELEASE." && \
git push --follow-tags && \
echo "[ok]"
echo "[ok]"
}
nextSnapshotVersion()
......@@ -87,9 +89,10 @@ nextSnapshotVersion()
}
checkIsMaster
releaseVersion
nextSnapshotVersion
releaseVersion
nextSnapshotVersion
echo "Success".
exit 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment