forked from larsch/ocra
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discontinue ocransa (Ocran-stand-alone)
The implementation of bin/ocran.rb has been split into multiple files, making it impossible to release a stand-alone version.
- Loading branch information
Showing
4 changed files
with
1 addition
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
*.exe | ||
*.gem | ||
!/share/ocran/lzma.exe | ||
bin/ocransa.rb | ||
pkg | ||
README.txt | ||
ocransa-*.zip | ||
*.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,60 +25,12 @@ file "share/ocran/edicon.exe" => :build_stub | |
|
||
task :test => :build_stub | ||
|
||
task :standalone => ["exe/ocrasa.rb"] | ||
|
||
standalone_zip = "exe/ocrasa-#{ENV["VERSION"]}.zip" | ||
|
||
file standalone_zip => "exe/ocrasa.rb" do | ||
chdir "exe" do | ||
sh "zip", "ocransa-#{ENV["VERSION"]}.zip", "ocransa.rb" | ||
end | ||
end | ||
|
||
task :release_standalone => standalone_zip do | ||
load "bin/ocran" | ||
#sh "rubyforge add_release ocran ocran-standalone #{Ocran::VERSION} #{standalone_zip}" | ||
end | ||
|
||
file "bin/ocrasa.rb" => ["bin/ocra", "share/ocran/stub.exe", "share/ocran/stubw.exe", "share/ocran/lzma.exe", "share/ocran/edicon.exe"] do | ||
cp "bin/ocran", "bin/ocrasa.rb" | ||
File.open("bin/ocrasa.rb", "a") do |f| | ||
f.puts "__END__" | ||
|
||
stub = File.open("share/ocran/stub.exe", "rb") { |g| g.read } | ||
stub64 = [stub].pack("m") | ||
f.puts stub64.size | ||
f.puts stub64 | ||
|
||
stub = File.open("share/ocran/stubw.exe", "rb") { |g| g.read } | ||
stub64 = [stub].pack("m") | ||
f.puts stub64.size | ||
f.puts stub64 | ||
|
||
lzma = File.open("share/ocran/lzma.exe", "rb") { |g| g.read } | ||
lzma64 = [lzma].pack("m") | ||
f.puts lzma64.size | ||
f.puts lzma64 | ||
|
||
lzma = File.open("share/ocran/edicon.exe", "rb") { |g| g.read } | ||
lzma64 = [lzma].pack("m") | ||
f.puts lzma64.size | ||
f.puts lzma64 | ||
end | ||
end | ||
|
||
task :clean do | ||
rm_f Dir["{bin,samples}/*.exe"] | ||
rm_f Dir["share/ocran/{stub,stubw,edicon}.exe"] | ||
sh "ridk exec make -C src clean" | ||
end | ||
|
||
task :test_standalone => :standalone do | ||
ENV["TESTED_OCRAN"] = "ocransa.rb" | ||
system("rake test") | ||
ENV["TESTED_OCRAN"] = nil | ||
end | ||
|
||
task :release_docs => :redocs do | ||
sh "pscp -r doc/* [email protected]:/var/www/gforge-projects/ocran" | ||
end | ||
|