Rakefile: don't fail with EMACS=t env setting

This lets it work from M-x shell.
This commit is contained in:
Noam Postavsky 2013-12-24 11:27:57 -05:00
parent 22773c77a0
commit e190b088f0

View File

@ -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.]+?) *$/