mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Rakefile: don't fail with EMACS=t env setting
This lets it work from M-x shell.
This commit is contained in:
parent
22773c77a0
commit
e190b088f0
5
Rakefile
5
Rakefile
@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
$EMACS=ENV["EMACS"] || "emacs"
|
$EMACS = ENV["EMACS"]
|
||||||
|
if not $EMACS or $EMACS == 't'
|
||||||
|
$EMACS = "emacs"
|
||||||
|
end
|
||||||
|
|
||||||
def find_version
|
def find_version
|
||||||
File.read("yasnippet.el", :encoding => "UTF-8") =~ /;; Package-version: *([0-9.]+?) *$/
|
File.read("yasnippet.el", :encoding => "UTF-8") =~ /;; Package-version: *([0-9.]+?) *$/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user