]> code.delx.au - gnu-emacs-elpa/commitdiff
Rakefile: don't fail with EMACS=t env setting
authorNoam Postavsky <npostavs@users.sourceforge.net>
Tue, 24 Dec 2013 16:27:57 +0000 (11:27 -0500)
committerNoam Postavsky <npostavs@users.sourceforge.net>
Tue, 24 Dec 2013 16:27:57 +0000 (11:27 -0500)
This lets it work from M-x shell.

Rakefile

index 3f94a9a499f402368fac30aaaf6e0ad5c452c99b..efbea56c50890eb788835e02f7f118aa3d345c79 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -2,7 +2,10 @@
 
 require 'fileutils'
 
-$EMACS=ENV["EMACS"] || "emacs"
+$EMACS = ENV["EMACS"]
+if not $EMACS or $EMACS == 't'
+  $EMACS = "emacs"
+end
 
 def find_version
   File.read("yasnippet.el", :encoding => "UTF-8") =~ /;; Package-version: *([0-9.]+?) *$/