Skip to content

Commit

Permalink
autoversioning for production quality releases
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Oct 20, 2015
1 parent 6b8a780 commit 087d8ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions travis-ci/autoversion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ function update_ai {
for nuspec in $f/../*.nuspec; do
if [[ -f "$nuspec" ]]; then
echo "Processing nuspec file: $nuspec"
padded=$(printf "%04d" $REVISION)
sed -i.bak "s/\\\$version\\\$/$VERSION_STR-cibuild$padded/g" $nuspec
if [[ $VERSION =~ "^v?[1-9]" && $REVISION == "0" ]]; then
sed -i.bak "s/\\\$version\\\$/$VERSION_STR/g" $nuspec
else
padded=$(printf "%04d" $REVISION)
sed -i.bak "s/\\\$version\\\$/$VERSION_STR-cibuild$padded/g" $nuspec
fi
fi
done
}
Expand Down

0 comments on commit 087d8ae

Please sign in to comment.