Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* cygwin/GNUmakefile.in (SCRIPTPROGRAMS): ignore backup files and etc.

* cygwin/GNUmakefile.in (scriptbin): set executable bit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit f5aca8a49ee91812b62617065719e79613bb57f8 1 parent 31a974d
Nobuyoshi Nakada authored December 10, 2010
6  ChangeLog
... ...
@@ -1,4 +1,8 @@
1  
-Fri Dec 10 18:27:49 2010  Nobuyoshi Nakada  <nobu@ruby-lang.org>
  1
+Fri Dec 10 18:28:40 2010  Nobuyoshi Nakada  <nobu@ruby-lang.org>
  2
+
  3
+	* cygwin/GNUmakefile.in (SCRIPTPROGRAMS): ignore backup files and etc.
  4
+
  5
+	* cygwin/GNUmakefile.in (scriptbin): set executable bit.
2 6
 
3 7
 	* tool/rbinstall.rb (install_recursive): always skip default ignored
4 8
 	  files.  if block is given, call it instead of calling install.
4  cygwin/GNUmakefile.in
@@ -12,7 +12,8 @@ else
12 12
   DLLWRAP += -mno-cygwin
13 13
   VPATH := $(VPATH):$(srcdir)/win32
14 14
   STUBPROGRAM = rubystub$(EXEEXT)
15  
-  SCRIPTPROGRAMS = $(addsuffix $(EXEEXT),$(notdir $(wildcard $(srcdir)/bin/*)))
  15
+  IGNOREDPATTERNS = %~ .% %.orig %.rej \#%\#
  16
+  SCRIPTPROGRAMS = $(addsuffix $(EXEEXT),$(filter-out $(IGNOREDPATTERNS),$(notdir $(wildcard $(srcdir)/bin/*))))
16 17
 endif
17 18
 
18 19
 ifneq ($(ENABLE_SHARED),yes)
@@ -42,6 +43,7 @@ scriptbin: $(SCRIPTPROGRAMS)
42 43
 %$(EXEEXT): bin/% $(STUBPROGRAM)
43 44
 	$(ECHO) generating $@
44 45
 	$(Q) { cat $(STUBPROGRAM); echo; sed -e '1{' -e '/^#!.*ruby/!i\' -e '#!/bin/ruby' -e '}' $<; } > $@
  46
+	$(Q) chmod +x $@
45 47
 
46 48
 $(LIBRUBY): $(RUBY_EXP) $(LIBRUBY_SO)
47 49
 $(RUBY_EXP) $(LIBRUBY_SO): $(DLL_BASE_NAME).res.@OBJEXT@

0 notes on commit f5aca8a

Please sign in to comment.
Something went wrong with that request. Please try again.