File: post-setup.rb

package info (click to toggle)
ruby-bluefeather 0.41-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 632 kB
  • ctags: 167
  • sloc: ruby: 4,195; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#==============================================================================#
# $Id: post-setup.rb,v 1.1 2006/04/27 01:25:21 yuya Exp $
#==============================================================================#

if /mswin32/ =~ RUBY_PLATFORM
  File.open("bluefeather.bat", "w") { |file|
    file.puts(%|@echo off|)
    file.puts(%|"%~dp0ruby" -x "%~f0" %*|)
    file.puts(%|goto endofruby|)
		file.puts
    file.write(File.read("bluefeather"))
		file.puts
    file.puts(%|__END__|)
    file.puts(%|:endofruby|)
  }
end

#==============================================================================#
#==============================================================================#