Develop and Download Open Source Software

Browse CVS Repository

Contents of /exerb/exerb/bin/post-setup.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Apr 24 11:18:41 2011 UTC (12 years, 11 months ago) by arton
Branch: MAIN
CVS Tags: release540, HEAD
Changes since 1.1: +2 -2 lines
[exerb-dev:0565-0566] auto gui/rubyw patch for *.rbw (behalf of MoonWolf)

1
2 #==============================================================================#
3 # $Id: post-setup.rb,v 1.1 2006/04/27 01:25:21 yuya Exp $
4 #==============================================================================#
5
6 if /mswin32|mingw32/ =~ RUBY_PLATFORM
7 File.open("exerb.bat", "w") { |file|
8 file.puts(%|@echo off|)
9 file.puts(%|"%~dp0ruby" -x "%~f0" %*|)
10 file.puts(%|goto endofruby|)
11 file.write(File.read("exerb"))
12 file.puts(%|__END__|)
13 file.puts(%|:endofruby|)
14 }
15 File.open("mkexy.bat", "w") { |file|
16 file.puts(%|@echo off|)
17 file.puts(%|"%~dp0ruby" -x "%~f0" %*|)
18 file.puts(%|goto endofruby|)
19 file.write(File.read("mkexy"))
20 file.puts(%|__END__|)
21 file.puts(%|:endofruby|)
22 }
23 end
24
25 #==============================================================================#
26 #==============================================================================#

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26