Navigation Menu

Skip to content

Commit

Permalink
Support specifying version by ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 11, 2017
1 parent f703908 commit 24f9896
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Expand Up @@ -28,6 +28,9 @@ def control_file(package)
end

def find_version(package)
env_version = ENV["VERSION"]
return env_version if env_version

control_content = File.read(control_file(package))
if /^default_version\s*=\s*'(.+)'$/ =~ control_content
$1
Expand Down

0 comments on commit 24f9896

Please sign in to comment.