mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 06:26:38 +00:00
feat(stable): add support for build variants via version suffix
When a new build needs to be produced for an existing version of Emacs, the build will have a `-<num>` suffix added to it's version string. This updates the stable cask to support the optional version suffix.
This commit is contained in:
@@ -22,7 +22,7 @@ cask 'emacs-app' do
|
||||
url 'https://github.com/jimeh/emacs-builds.git'
|
||||
strategy :git do |tags|
|
||||
tags.map do |tag|
|
||||
m = /^Emacs-(\d+\.\d+[a-z]*)$/.match(tag)
|
||||
m = /^Emacs-(\d+\.\d+[a-z]*(-.+)?)$/.match(tag)
|
||||
next unless m
|
||||
|
||||
m[1]
|
||||
|
||||
@@ -12,7 +12,7 @@ cask 'emacs-app' do
|
||||
url 'https://github.com/jimeh/emacs-builds.git'
|
||||
strategy :git do |tags|
|
||||
tags.map do |tag|
|
||||
m = /^Emacs-(\d+\.\d+[a-z]*)$/.match(tag)
|
||||
m = /^Emacs-(\d+\.\d+[a-z]*(-.+)?)$/.match(tag)
|
||||
next unless m
|
||||
|
||||
m[1]
|
||||
|
||||
Reference in New Issue
Block a user