Skip to content

Commit

Permalink
Added .version file
Browse files Browse the repository at this point in the history
  • Loading branch information
trupin committed Sep 25, 2018
1 parent 22641a7 commit 44d8050
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 29 deletions.
1 change: 1 addition & 0 deletions .version
@@ -0,0 +1 @@
0.10.3
2 changes: 1 addition & 1 deletion Makefile
@@ -1,4 +1,4 @@
VERSION := $(shell /usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Weaver.xcodeproj/WeaverCodeGen_Info.plist)
VERSION := $(shell /bin/cat .version)
PREFIX=/usr/local
SWIFT_BUILD_FLAGS=--configuration release

Expand Down
25 changes: 0 additions & 25 deletions Weaver.xcodeproj/WeaverCodeGen_Info.plist

This file was deleted.

6 changes: 3 additions & 3 deletions tools/bump_version.sh
@@ -1,14 +1,14 @@
current_version=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Weaver.xcodeproj/WeaverCodeGen_Info.plist`
current_version=`cat .version`

next_version=$1
if [ -z $next_version ]; then
next_version=${current_version%.*}.$((${current_version##*.}+1))
fi

echo $next_version
echo $next_version > ../.version

sed -i '' "s/${current_version//./\\.}/$next_version/g" \
Weaver.xcodeproj/WeaverCodeGen_Info.plist \
Resources/dependency_resolver.stencil \
Tests/WeaverCodeGenTests/Generator/Output/*.swift \
Sources/WeaverCommand/main.swift
Expand All @@ -22,4 +22,4 @@ sed -i '' "s/${previous_version//./\\.}/$current_version/g" \
README.md \
$(brew --repo homebrew/core)/Formula/weaver.rb

git commit -am "Bump version to $next_version"
git commit -am "Bump version to $next_version"

0 comments on commit 44d8050

Please sign in to comment.