aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-19 12:19:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-19 12:19:19 +0000
commit295c75cb7ccaee5d3050f60f9daff85e2f6ae050 (patch)
treed18dc5577c9ea99f43449711284be3c4b0464140
parentde85d6e92ec7b7642ad02ca93cb6d5cdf75ac481 (diff)
downloadruby-295c75cb7ccaee5d3050f60f9daff85e2f6ae050.tar.gz
* tool/generic_erb.rb: sends the result to stdout if no output option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog3
-rw-r--r--tool/generic_erb.rb2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b1275986c5..7c61dbb102 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,9 @@
-Sun Oct 19 21:12:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Oct 19 21:19:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* common.mk (srcs): removed ID_H_TARGET.
* tool/generic_erb.rb: always overwrites if no if-change option.
+ sends the result to stdout if no output option.
* template/id.h.tmpl: shows which token differs.
diff --git a/tool/generic_erb.rb b/tool/generic_erb.rb
index f7ef48deea..3ddfd7f653 100644
--- a/tool/generic_erb.rb
+++ b/tool/generic_erb.rb
@@ -29,4 +29,6 @@ if output
end
FileUtils.touch(timestamp)
end
+else
+ print result
end