mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Add test script to extract version from URL/path.
This commit is contained in:
parent
81f87c69ac
commit
d2b2ecbd0b
7
Library/Homebrew/test/get_version.rb
Executable file
7
Library/Homebrew/test/get_version.rb
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/ruby
|
||||
$:.push(File.expand_path(__FILE__+'/../..'))
|
||||
require 'extend/pathname'
|
||||
|
||||
p = Pathname.new(ARGV[0])
|
||||
v = p.version
|
||||
puts v
|
Loading…
x
Reference in New Issue
Block a user