[前][次][番号順一覧][スレッド一覧]

ruby-changes:17759

From: nobu <ko1@a...>
Date: Fri, 12 Nov 2010 20:55:13 +0900 (JST)
Subject: [ruby-changes:17759] Ruby:r29770 (trunk): * common.mk (showflags, help): use caret to quote leading spaces on Windows.

nobu	2010-11-12 20:52:45 +0900 (Fri, 12 Nov 2010)

  New Revision: 29770

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29770

  Log:
    * common.mk (showflags, help): use caret to quote leading spaces on Windows.

  Modified files:
    trunk/ChangeLog
    trunk/Makefile.in
    trunk/common.mk
    trunk/win32/Makefile.sub

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29769)
+++ ChangeLog	(revision 29770)
@@ -1,5 +1,7 @@
-Fri Nov 12 20:51:29 2010  Nobuyoshi Nakada  <nobu@r...>
+Fri Nov 12 20:52:34 2010  Nobuyoshi Nakada  <nobu@r...>
 
+	* common.mk (showflags, help): use caret to quote leading spaces on Windows.
+
 	* Makefile.in, common.mk, cygwin/GNUmakefile.in, enc/depend,
 	  ext/ripper/depend, lib/mkmf.rb, win32/Makefile.sub: caddle up.
 
Index: common.mk
===================================================================
--- common.mk	(revision 29769)
+++ common.mk	(revision 29770)
@@ -142,11 +142,11 @@
 .PHONY: showflags
 exts enc trans: showflags
 showflags:
-	@echo "	CFLAGS = $(CFLAGS)"
-	@echo "	XCFLAGS = $(XCFLAGS)"
-	@echo "	CPPFLAGS = $(CPPFLAGS)"
-	@echo "	DLDFLAGS = $(DLDFLAGS)"
-	@echo "	SOLIBS = $(SOLIBS)"
+	$(MSG)	CFLAGS = $(CFLAGS)$(EOM)
+	$(MSG)	XCFLAGS = $(XCFLAGS)$(EOM)
+	$(MSG)	CPPFLAGS = $(CPPFLAGS)$(EOM)
+	$(MSG)	DLDFLAGS = $(DLDFLAGS)$(EOM)
+	$(MSG)	SOLIBS = $(SOLIBS)$(EOM)
 
 exts: $(MKMAIN_CMD)
 
@@ -872,32 +872,32 @@
 	$(BASERUBY) -C "$(srcdir)" ./tool/change_maker.rb $(CHANGES) > change.log
 
 help: PHONY
-	@echo "                Makefile of Ruby"
-	@echo ""
-	@echo "targets:"
-	@echo "  all (default):   builds all of below"
-	@echo "  miniruby:        builds only miniruby"
-	@echo "  encs:            builds encodings"
-	@echo "  exts:            builds extensions"
-	@echo "  main:            builds encodings, extensions and ruby"
-	@echo "  docs:            builds documents"
-	@echo "  run:             runs test.rb by miniruby"
-	@echo "  runruby:         runs test.rb by ruby you just built"
-	@echo "  gdb:             runs test.rb by miniruby under gdb"
-	@echo "  gdb-ruby:        runs test.rb by ruby under gdb"
-	@echo "  check:           equals make test test-all"
-	@echo "  test:            ruby core tests"
-	@echo "  test-all:        all ruby tests"
-	@echo "  test-rubyspec    run RubySpec test suite"
-	@echo "  update-rubyspec  update local copy of RubySpec"
-	@echo "  benchmark        benchmark this ruby and COMPARE_RUBY"
-	@echo "  install:         install all ruby distributions"
-	@echo "  install-nodoc:   install without rdoc"
-	@echo "  install-cross:   install cross compiling staff"
-	@echo "  clean:           clean for tarball"
-	@echo "  distclean:       clean for repo"
-	@echo "  change:          make change log template"
-	@echo "  golf:            for golfers"
-	@echo ""
-	@echo "see DeveloperHowto for more detail: "
-	@echo "  http://redmine.ruby-lang.org/wiki/ruby/DeveloperHowto"
+	$(MSG)                Makefile of Ruby$(EOM)
+	$(MSG)$(EOM)
+	$(MSG)targets:$(EOM)
+	$(MSG)  all (default):   builds all of below$(EOM)
+	$(MSG)  miniruby:        builds only miniruby$(EOM)
+	$(MSG)  encs:            builds encodings$(EOM)
+	$(MSG)  exts:            builds extensions$(EOM)
+	$(MSG)  main:            builds encodings, extensions and ruby$(EOM)
+	$(MSG)  docs:            builds documents$(EOM)
+	$(MSG)  run:             runs test.rb by miniruby$(EOM)
+	$(MSG)  runruby:         runs test.rb by ruby you just built$(EOM)
+	$(MSG)  gdb:             runs test.rb by miniruby under gdb$(EOM)
+	$(MSG)  gdb-ruby:        runs test.rb by ruby under gdb$(EOM)
+	$(MSG)  check:           equals make test test-all$(EOM)
+	$(MSG)  test:            ruby core tests$(EOM)
+	$(MSG)  test-all:        all ruby tests$(EOM)
+	$(MSG)  test-rubyspec    run RubySpec test suite$(EOM)
+	$(MSG)  update-rubyspec  update local copy of RubySpec$(EOM)
+	$(MSG)  benchmark        benchmark this ruby and COMPARE_RUBY$(EOM)
+	$(MSG)  install:         install all ruby distributions$(EOM)
+	$(MSG)  install-nodoc:   install without rdoc$(EOM)
+	$(MSG)  install-cross:   install cross compiling staff$(EOM)
+	$(MSG)  clean:           clean for tarball$(EOM)
+	$(MSG)  distclean:       clean for repo$(EOM)
+	$(MSG)  change:          make change log template$(EOM)
+	$(MSG)  golf:            for golfers$(EOM)
+	$(MSG)$(EOM)
+	$(MSG)see DeveloperHowto for more detail: $(EOM)
+	$(MSG)  http://redmine.ruby-lang.org/wiki/ruby/DeveloperHowto$(EOM)
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 29769)
+++ win32/Makefile.sub	(revision 29770)
@@ -341,6 +341,9 @@
 !endif
 ruby_pc = $(RUBY_BASE_NAME)-$(MAJOR).$(MINOR).pc
 
+MSG = echo ^
+EOM =
+
 all: $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(srcdir)/common.mk
 
 ruby: $(PROGRAM)
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 29769)
+++ Makefile.in	(revision 29770)
@@ -142,6 +142,8 @@
 MKMAIN_CMD    = mkmain.sh
 
 SRC_FILE      = $<
+MSG = @echo "
+EOM = "
 #### End of variables
 
 all:

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]