Skip to content

Commit

Permalink
use version in branchname if branch is master
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanHoogland committed Jun 18, 2015
1 parent b9dd67c commit 797a7f0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tools/build/build_asf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,13 @@ git clean -f

#create a RC branch
RELEASE_BRANCH="RC"`date +%Y%m%dT%H%M`
git branch $branch-$RELEASE_BRANCH
git checkout $branch-$RELEASE_BRANCH
if [ "$branch" = "master" ]; then
BRANCHNAME=$version-$RELEASE_BRANCH
else
BRANCHNAME=$branch-$RELEASE_BRANCH
fi
git branch $BRANCHNAME
git checkout $BRANCHNAME


echo 'commit changes'
Expand All @@ -129,7 +134,7 @@ export commitsh=`git show HEAD | head -n 1 | cut -d ' ' -f 2`
echo "committed as $commitsh"

echo 'archiving'
git archive --format=tar --prefix=apache-cloudstack-$version-src/ $branch-$RELEASE_BRANCH > $outputdir/apache-cloudstack-$version-src.tar
git archive --format=tar --prefix=apache-cloudstack-$version-src/ $BRANCHNAME > $outputdir/apache-cloudstack-$version-src.tar
bzip2 $outputdir/apache-cloudstack-$version-src.tar

cd $outputdir
Expand Down

0 comments on commit 797a7f0

Please sign in to comment.