sensible-cinema 0.34.0 → 0.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitmodules +1 -1
- data/README.TXT +19 -20
- data/Rakefile +191 -195
- data/TODO +122 -149
- data/VERSION +1 -1
- data/bin/sensible-cinema +52 -52
- data/change_log_with_feature_list.txt +532 -481
- data/documentation/troubleshooting.txt +3 -9
- data/go.bat +2 -2
- data/go.sh +1 -0
- data/goc.bat +1 -1
- data/goc.sh +1 -0
- data/lib/check_installed_mac.rb +2 -10
- data/lib/edl_parser.rb +40 -16
- data/lib/gui/base.rb +85 -27
- data/lib/gui/create-file.rb +3 -2
- data/lib/gui/create.rb +118 -101
- data/lib/gui/dependencies.rb +110 -76
- data/lib/gui/normal.rb +32 -81
- data/lib/mplayer_edl.rb +7 -1
- data/lib/subtitle_profanity_finder.rb +10 -5
- data/notes_for_potential_developers.txt +18 -25
- data/spec/bad_beginning.srt +3778 -0
- data/spec/edl_parser.spec.rb +4 -0
- data/spec/notes +327 -167
- data/spec/youtube_edl.spec.rb +28 -0
- data/template_bats/RUN SENSIBLE CINEMA CLICK HERE WINDOWS.bat +2 -2
- data/todo.inventionzy.txt +3 -1
- data/vendor/mplayer_patches/how_to_doze.bat +6 -0
- data/vendor/mplayer_patches/port_dir/PortIndex.quick +1 -1
- data/vendor/mplayer_patches/port_dir/how_to +16 -9
- data/vendor/mplayer_patches/port_dir/multimedia/mplayer-edl/Portfile +10 -25
- data/vendor/mplayer_patches/port_dir/multimedia/rdp-projects/Portfile +2 -2
- data/vendor/mplayer_patches/{configure_from_betterlogic → port_dir_is_for_mac} +0 -0
- data/www/content_editor.html +9 -5
- data/zamples/edit_decision_lists/dvds/big_buck_bunny_dvd.txt +7 -4
- data/zamples/edit_decision_lists/dvds/court_jester.txt +0 -1
- data/zamples/edit_decision_lists/dvds/edls_being_edited/father_goose.txt +41 -0
- data/zamples/edit_decision_lists/dvds/edls_being_edited/harry_potter_and_the_goblet_of_fire.txt +45 -0
- data/zamples/edit_decision_lists/dvds/edls_being_edited/national_treasure.txt +6 -3
- data/zamples/edit_decision_lists/dvds/edls_being_edited/percy_jackson_lightening_thief.txt +40 -0
- data/zamples/edit_decision_lists/dvds/edls_being_edited/percy_jackson_lightening_thief_mute_scary.txt +23 -0
- data/zamples/edit_decision_lists/dvds/edls_being_edited/puss_in_boots.txt +33 -0
- data/zamples/edit_decision_lists/dvds/edls_being_edited/ratatouille.txt +5 -5
- data/zamples/edit_decision_lists/dvds/edls_being_edited/rio.txt +24 -0
- data/zamples/edit_decision_lists/dvds/sintel_open_source_blender_ntsc_dvd.txt +0 -1
- metadata +17 -15
- data/lib/count_down_timer_jruby_swing.rb +0 -55
- data/vendor/mplayer_patches/apply.bat +0 -12
- data/vendor/mplayer_patches/libdvdnav/2905259c3b45529b3d8dedba572b6e4f67a2d8f4.diff +0 -19
- data/vendor/mplayer_patches/libdvdnav/83f1c9256f500285e46f1e44bcc74ffce90159db.diff +0 -16
- data/vendor/mplayer_patches/libdvdnav/eb91fb74680d30322461a1b9e425918ad4e2b2df.diff +0 -21
- data/vendor/mplayer_patches/libdvdnav/jump_to_time.diff +0 -654
- data/vendor/mplayer_patches/libdvdnav/non_strict.diff +0 -13
- data/vendor/mplayer_patches/mplayer_edl.diff +0 -354
- data/vendor/mplayer_patches/updated_lib_too +0 -0
data/.gitmodules
CHANGED
data/README.TXT
CHANGED
|
@@ -75,6 +75,21 @@ DO NOT MAKE ILLEGAL COPIES OF DVD's for your country. See also is_it_legal_to_co
|
|
|
75
75
|
DO NOT DISTRIBUTE EDITED DVD's.
|
|
76
76
|
Watching movies edited may be legal in the US via the Family Protection Act.
|
|
77
77
|
|
|
78
|
+
|
|
79
|
+
== Feedback/Contributing to Development ==
|
|
80
|
+
|
|
81
|
+
Feedback, including feature requests, comments, etc. all welcome:
|
|
82
|
+
|
|
83
|
+
Mailing List: http://groups.google.com/group/sensible-cinema, or just mail to
|
|
84
|
+
sensible-cinema@googlegroups.com or rogerdpack@gmail.com
|
|
85
|
+
|
|
86
|
+
If you're a developer and want to help out with programmming or look and feel, etc., please do!
|
|
87
|
+
See notes_for_potential_developers.txt file, and also http://github.com/rdp/sensible-cinema for source, and/or
|
|
88
|
+
the wiki there.
|
|
89
|
+
|
|
90
|
+
If you want to donate something, please consider donating to a charity of your choice.
|
|
91
|
+
No really, feel free, go ahead.
|
|
92
|
+
|
|
78
93
|
== FAQ ==
|
|
79
94
|
|
|
80
95
|
Q. How do I watch these on my TV, not just on my computer?
|
|
@@ -96,9 +111,7 @@ A. Yes, just use some WMC plugin that allows you to "call out" to a 3rd party so
|
|
|
96
111
|
Then use the "advanced" mode "create side-by-side EDL file" to create an EDL for your previously existing file.
|
|
97
112
|
Then make your WMC plugin "call out" to smplayer to play those files (through whatever means it necessary), and
|
|
98
113
|
it will automatically pick up and use the EDL file.
|
|
99
|
-
You could also use the same side-by-side EDL file with XBMC, which also honors them
|
|
100
|
-
mutes are broken currently, so it will set it to just always skip. [note: this may not be implemented all the
|
|
101
|
-
way yet ask on the mailing list if it is or not, for XBMC]
|
|
114
|
+
You could also use the same side-by-side EDL file with XBMC, which also honors them (need at least an Eden release version).
|
|
102
115
|
|
|
103
116
|
Q. Is it unethical to watch edited movies?
|
|
104
117
|
Well, producers have been making "airplane edited" movies forever, why should this offend them? :)
|
|
@@ -171,9 +184,9 @@ Also clearplay doesn't seem to users for example leave comments on their filters
|
|
|
171
184
|
Also you can't tell from clearplay's list whether a DVD is absent because it's clean, or because they
|
|
172
185
|
haven't done a filter for it.
|
|
173
186
|
Also sometimes certain DVD's "don't work" with clearplay for some reason (rental versions?) [3]
|
|
174
|
-
As a friend once said "Clearplay is a bit of a hassle to use in today's day and age.
|
|
175
|
-
It should either have wireless or an ethernet port on it. I should
|
|
176
|
-
enter my login credentials to the box. When I stick a move in, it
|
|
187
|
+
As a friend once said "Clearplay is a bit of a hassle to use in today's day and age.
|
|
188
|
+
It should either have wireless or an ethernet port on it. I should
|
|
189
|
+
enter my login credentials to the box. When I stick a move in, it
|
|
177
190
|
should go to the website and download the filter."
|
|
178
191
|
|
|
179
192
|
So overall I wanted to build my own that overcame some of these hurdles.
|
|
@@ -226,20 +239,6 @@ the authors and maintainers of said libraries, and anybody else I forgot to ment
|
|
|
226
239
|
Sensible Cinema is a conglomeration of the good ideas from several people who contacted me
|
|
227
240
|
over time. Thanks for your contributions.
|
|
228
241
|
|
|
229
|
-
== Feedback/Contributing to Development ==
|
|
230
|
-
|
|
231
|
-
Feedback, including feature requests, comments, etc. all welcome:
|
|
232
|
-
|
|
233
|
-
Mailing List: http://groups.google.com/group/sensible-cinema, or just mail to
|
|
234
|
-
sensible-cinema@googlegroups.com or rogerdpack@gmail.com
|
|
235
|
-
|
|
236
|
-
If you're a developer and want to help out with programmming or look and feel, etc., please do!
|
|
237
|
-
See notes_for_potential_developers.txt file, and also http://github.com/rdp/sensible-cinema for source, and/or
|
|
238
|
-
the wiki there.
|
|
239
|
-
|
|
240
|
-
If you want to donate something, please consider donating to a charity of your choice.
|
|
241
|
-
No really, feel free, go ahead.
|
|
242
|
-
|
|
243
242
|
== Competition/re-use of files ==
|
|
244
243
|
|
|
245
244
|
Note that competition/use of files from sensible cinema is welcome!
|
data/Rakefile
CHANGED
|
@@ -1,206 +1,202 @@
|
|
|
1
1
|
require 'rubygems'
|
|
2
|
-
require 'jeweler' # gem
|
|
3
|
-
require 'os' # gem
|
|
4
|
-
|
|
5
|
-
ENV['PATH'] = "C:\\Program Files (x86)\\Git\\cmd;" + ENV['PATH'] # for jeweler's git gem hackaround...
|
|
6
|
-
|
|
7
|
-
Jeweler::Tasks.new do |s|
|
|
8
|
-
s.name = "sensible-cinema"
|
|
9
|
-
s.summary = "an EDL scene-skipper/bleeper that works with DVD's and online players like
|
|
10
|
-
s.email = "rogerdpack@gmail.com"
|
|
11
|
-
s.homepage = "http://github.com/rdp"
|
|
12
|
-
s.authors = ["Roger Pack"]
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
s.add_dependency '
|
|
16
|
-
s.add_dependency '
|
|
17
|
-
s.add_dependency '
|
|
18
|
-
s.add_dependency '
|
|
19
|
-
s.add_dependency '
|
|
20
|
-
s.add_dependency '
|
|
21
|
-
s.add_dependency '
|
|
22
|
-
s.add_dependency '
|
|
23
|
-
s.
|
|
24
|
-
s.
|
|
25
|
-
s.
|
|
26
|
-
s.add_development_dependency '
|
|
27
|
-
s.add_development_dependency '
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
desc 'collect binary and gem deps for distribution'
|
|
83
|
-
task 'rebundle_copy_in_dependencies' => 'gemspec' do
|
|
84
|
-
spec = eval File.read('sensible-cinema.gemspec')
|
|
2
|
+
require 'jeweler' # gem
|
|
3
|
+
require 'os' # gem
|
|
4
|
+
|
|
5
|
+
ENV['PATH'] = "C:\\Program Files (x86)\\Git\\cmd;" + ENV['PATH'] # for jeweler's git gem hackaround...
|
|
6
|
+
|
|
7
|
+
Jeweler::Tasks.new do |s|
|
|
8
|
+
s.name = "sensible-cinema"
|
|
9
|
+
s.summary = "an EDL scene-skipper/bleeper that works with DVD's and files and online players like netflix instant"
|
|
10
|
+
s.email = "rogerdpack@gmail.com"
|
|
11
|
+
s.homepage = "http://github.com/rdp"
|
|
12
|
+
s.authors = ["Roger Pack"]
|
|
13
|
+
|
|
14
|
+
# IF CHANGED PUBLISH NEW GEM [and delete pkg] :)
|
|
15
|
+
s.add_dependency 'os', '>= 0.9.4'
|
|
16
|
+
s.add_dependency 'sane', '>= 0.25.4'
|
|
17
|
+
s.add_dependency 'rdp-win32screenshot', '= 0.0.9'
|
|
18
|
+
s.add_dependency 'mini_magick', '>= 3.1' # for ocr...
|
|
19
|
+
s.add_dependency 'whichr', '>= 0.3.6'
|
|
20
|
+
s.add_dependency 'rdp-rautomation', '> 0.6.3' # LODO use mainline with next release, though I can't remember why
|
|
21
|
+
s.add_dependency 'rdp-ruby-wmi' # for windows
|
|
22
|
+
s.add_dependency 'plist' # for mac
|
|
23
|
+
s.add_dependency 'jruby-win32ole' # jruby-complete.jar doesn't include windows specifics...
|
|
24
|
+
s.add_dependency 'ffi' # mouse, etc. needed for windows MRI, probably jruby too [windows]
|
|
25
|
+
s.files.exclude '**/*.exe', '**/*.wav', '**/images/*'
|
|
26
|
+
s.add_development_dependency 'hitimes' # now jruby compat!
|
|
27
|
+
s.add_development_dependency 'rspec', '> 2'
|
|
28
|
+
s.add_development_dependency 'jeweler'
|
|
29
|
+
s.add_development_dependency 'rake'
|
|
30
|
+
if ENV['for_gem_release']
|
|
31
|
+
# add as real dependencies for now, as gem install --development is still broken https://github.com/rubygems/rubygems/issues/309
|
|
32
|
+
for gem in s.development_dependencies #['hitimes', 'rspec', 'jeweler', 'rake']
|
|
33
|
+
s.add_dependency gem.name, gem.requirement
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
desc 'run all specs'
|
|
39
|
+
task 'spec' do
|
|
40
|
+
failed = []
|
|
41
|
+
Dir.chdir 'spec' do
|
|
42
|
+
for file in Dir['*spec*.rb'] do
|
|
43
|
+
puts "Running " + file
|
|
44
|
+
if !system(OS.ruby_bin + " " + file)
|
|
45
|
+
failed << file
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
if failed.length == 0
|
|
50
|
+
p 'all specs passed!'
|
|
51
|
+
else
|
|
52
|
+
p 'at least one spec failed!', failed
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def get_transitive_dependencies dependencies
|
|
58
|
+
new_dependencies = []
|
|
59
|
+
dependencies.each{|d|
|
|
60
|
+
gem d.name # make sure it's loaded so that it'll be in Gem.loaded_specs
|
|
61
|
+
begin
|
|
62
|
+
dependency_spec = Gem.loaded_specs.select{|name, spec| name == d.name}[0][1]
|
|
63
|
+
rescue
|
|
64
|
+
raise 'possibly dont have that gem are you running jruby for sure?' + d.name + Gem.loaded_specs.select{|name, spec| name}.inspect
|
|
65
|
+
end
|
|
66
|
+
transitive_deps = dependency_spec.runtime_dependencies
|
|
67
|
+
new_dependencies << transitive_deps
|
|
68
|
+
}
|
|
69
|
+
new_dependencies.flatten.uniq
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
desc 'clear_and_copy_vendor_cache'
|
|
73
|
+
task 'clear_and_copy_vendor_cache' do
|
|
74
|
+
FileUtils.rm_rf "../cache.bak"
|
|
75
|
+
system("cp -r vendor/cache ../cache.bak") # so we can retrieve it back later
|
|
76
|
+
Dir['vendor/cache/*'].each{|f|
|
|
77
|
+
FileUtils.rm_rf f
|
|
78
|
+
raise 'unable to delete: ' + f if File.exist?(f)
|
|
79
|
+
}
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
desc 'collect binary and gem deps for distribution'
|
|
83
|
+
task 'rebundle_copy_in_dependencies' => 'gemspec' do
|
|
84
|
+
spec = eval File.read('sensible-cinema.gemspec')
|
|
85
85
|
dependencies = spec.runtime_dependencies
|
|
86
|
-
dependencies = (dependencies + get_transitive_dependencies(dependencies)).uniq
|
|
86
|
+
dependencies = (dependencies + get_transitive_dependencies(dependencies)).uniq
|
|
87
87
|
FileUtils.mkdir_p 'vendor/cache'
|
|
88
|
-
Dir.chdir 'vendor/cache' do
|
|
89
|
-
dependencies.each{|d|
|
|
90
|
-
system("#{OS.ruby_bin} -S gem unpack #{d.name}")
|
|
91
|
-
}
|
|
92
|
-
end
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
desc 'create distro zippable dir'
|
|
96
|
-
task 'create_distro_dir' => :gemspec do # depends on gemspec...
|
|
97
|
-
raise 'need rebundle deps first' unless File.directory? 'vendor/cache'
|
|
98
|
-
require 'fileutils'
|
|
99
|
-
spec = eval File.read('sensible-cinema.gemspec')
|
|
100
|
-
dir_out = spec.name + "-" + spec.version.version + '/sensible-cinema'
|
|
101
|
-
old_glob = spec.name + '-*'
|
|
102
|
-
FileUtils.rm_rf Dir[old_glob] # remove any old versions' distro files
|
|
103
|
-
raise 'unable to delete...' if Dir[old_glob].length > 0
|
|
104
|
-
|
|
105
|
-
existing = Dir['*']
|
|
106
|
-
FileUtils.mkdir_p dir_out
|
|
107
|
-
FileUtils.cp_r(existing, dir_out) # copies files, subdirs in
|
|
108
|
-
# these belong in the parent dir, by themselves.
|
|
109
|
-
root_distro = "#{dir_out}/.."
|
|
110
|
-
FileUtils.cp_r(dir_out + '/template_bats/mac', root_distro) # the executable bit carries through somehow..
|
|
111
|
-
FileUtils.cp_r(dir_out + '/template_bats/pc', root_distro) # the executable bit carries through somehow..
|
|
112
|
-
FileUtils.cp(dir_out + '/template_bats/RUN SENSIBLE CINEMA CLICK HERE WINDOWS.bat', root_distro)
|
|
113
|
-
FileUtils.cp('template_bats/README_DISTRO.TXT', root_distro)
|
|
114
|
-
p 'created (still need to zips it) ' + dir_out
|
|
115
|
-
FileUtils.rm_rf Dir[dir_out + '/**/{spec}'] # don't need to distribute those..save 3M!
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
def cur_ver
|
|
119
|
-
File.read('VERSION').strip
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
def delete_now_packaged_dir name
|
|
123
|
-
FileUtils.rm_rf name
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
desc 'create *.zip,tgz'
|
|
127
|
-
task 'zip' do
|
|
128
|
-
name = 'sensible-cinema-' + cur_ver
|
|
129
|
-
raise 'doesnt exist yet to zip?' unless File.directory? name
|
|
88
|
+
Dir.chdir 'vendor/cache' do
|
|
89
|
+
dependencies.each{|d|
|
|
90
|
+
system("#{OS.ruby_bin} -S gem unpack #{d.name}")
|
|
91
|
+
}
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
desc 'create distro zippable dir'
|
|
96
|
+
task 'create_distro_dir' => :gemspec do # depends on gemspec...
|
|
97
|
+
raise 'need rebundle deps first' unless File.directory? 'vendor/cache'
|
|
98
|
+
require 'fileutils'
|
|
99
|
+
spec = eval File.read('sensible-cinema.gemspec')
|
|
100
|
+
dir_out = spec.name + "-" + spec.version.version + '/sensible-cinema'
|
|
101
|
+
old_glob = spec.name + '-*'
|
|
102
|
+
FileUtils.rm_rf Dir[old_glob] # remove any old versions' distro files
|
|
103
|
+
raise 'unable to delete...' if Dir[old_glob].length > 0
|
|
104
|
+
|
|
105
|
+
existing = Dir['*']
|
|
106
|
+
FileUtils.mkdir_p dir_out
|
|
107
|
+
FileUtils.cp_r(existing, dir_out) # copies files, subdirs in
|
|
108
|
+
# these belong in the parent dir, by themselves.
|
|
109
|
+
root_distro = "#{dir_out}/.."
|
|
110
|
+
FileUtils.cp_r(dir_out + '/template_bats/mac', root_distro) # the executable bit carries through somehow..
|
|
111
|
+
FileUtils.cp_r(dir_out + '/template_bats/pc', root_distro) # the executable bit carries through somehow..
|
|
112
|
+
FileUtils.cp(dir_out + '/template_bats/RUN SENSIBLE CINEMA CLICK HERE WINDOWS.bat', root_distro)
|
|
113
|
+
FileUtils.cp('template_bats/README_DISTRO.TXT', root_distro)
|
|
114
|
+
p 'created (still need to zips it) ' + dir_out
|
|
115
|
+
FileUtils.rm_rf Dir[dir_out + '/**/{spec}'] # don't need to distribute those..save 3M!
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def cur_ver
|
|
119
|
+
File.read('VERSION').strip
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
def delete_now_packaged_dir name
|
|
123
|
+
FileUtils.rm_rf name
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
desc 'create *.zip,tgz'
|
|
127
|
+
task 'zip' do
|
|
128
|
+
name = 'sensible-cinema-' + cur_ver
|
|
129
|
+
raise 'doesnt exist yet to zip?' unless File.directory? name
|
|
130
130
|
if OS.doze?
|
|
131
|
-
|
|
131
|
+
raise 'please distro from linux only so we can get mac distros too'
|
|
132
132
|
else
|
|
133
|
-
|
|
134
|
-
puts "NOT packaging win installer"
|
|
133
|
+
sys "zip -r #{name}.zip #{name}"
|
|
135
134
|
end
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if n > 0
|
|
149
|
-
p 'retrying ' + arg
|
|
150
|
-
end
|
|
151
|
-
if system arg
|
|
152
|
-
return
|
|
135
|
+
sys "tar -cvzf #{name}.mac-os-x.tgz #{name}"
|
|
136
|
+
delete_now_packaged_dir name
|
|
137
|
+
p 'created ' + name + '.zip,tgz and also deleted its [create from] folder'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
def sys arg, failing_is_ok = false
|
|
141
|
+
3.times { |n|
|
|
142
|
+
if n > 0
|
|
143
|
+
p 'retrying ' + arg
|
|
144
|
+
end
|
|
145
|
+
if system arg
|
|
146
|
+
return
|
|
153
147
|
end
|
|
154
|
-
}
|
|
155
|
-
raise arg + ' failed 3x!' unless failing_is_ok
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
desc 'deploy to sourceforge, after zipping'
|
|
159
|
-
task 'deploy' do
|
|
160
|
-
p 'creating sf shell'
|
|
161
|
-
sys "ssh rdp@ilab1.cs.byu.edu 'ssh rogerdpack,sensible-cinema@shell.sourceforge.net create'" # needed for the next command to be able to work [weird]
|
|
162
|
-
p 'creating sf dir'
|
|
163
|
-
sys "ssh rdp@ilab1.cs.byu.edu 'ssh rogerdpack,sensible-cinema@shell.sourceforge.net \"mkdir /home/frs/project/s/se/sensible-cinema/#{cur_ver}\"'", true
|
|
164
|
-
for suffix in [ '.zip', '.mac-os-x.tgz']
|
|
148
|
+
}
|
|
149
|
+
raise arg + ' failed 3x!' unless failing_is_ok
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
desc 'deploy to sourceforge, after zipping'
|
|
153
|
+
task 'deploy' do
|
|
154
|
+
p 'creating sf shell'
|
|
155
|
+
sys "ssh rdp@ilab1.cs.byu.edu 'ssh rogerdpack,sensible-cinema@shell.sourceforge.net create'" # needed for the next command to be able to work [weird]
|
|
156
|
+
p 'creating sf dir'
|
|
157
|
+
sys "ssh rdp@ilab1.cs.byu.edu 'ssh rogerdpack,sensible-cinema@shell.sourceforge.net \"mkdir /home/frs/project/s/se/sensible-cinema/#{cur_ver}\"'", true
|
|
158
|
+
for suffix in [ '.zip', '.mac-os-x.tgz']
|
|
165
159
|
name = 'sensible-cinema-' + cur_ver + suffix
|
|
166
|
-
if File.exist? name
|
|
167
|
-
p 'copying to ilab ' + name
|
|
168
|
-
sys "scp #{name} rdp@ilab1.cs.byu.edu:~/incoming"
|
|
169
|
-
p 'copying into sf from ilab'
|
|
160
|
+
if File.exist? name
|
|
161
|
+
p 'copying to ilab ' + name
|
|
162
|
+
sys "scp #{name} rdp@ilab1.cs.byu.edu:~/incoming"
|
|
163
|
+
p 'copying into sf from ilab ' + name
|
|
170
164
|
sys "ssh rdp@ilab1.cs.byu.edu 'scp ~/incoming/#{name} rogerdpack,sensible-cinema@frs.sourceforge.net:/home/frs/project/s/se/sensible-cinema/#{cur_ver}/#{name}'"
|
|
171
165
|
else
|
|
172
166
|
p 'not copying:' + name
|
|
173
|
-
end
|
|
174
|
-
end
|
|
175
|
-
p 'successfully deployed to sf! ' + cur_ver
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
# task 'gem_release' do
|
|
179
|
-
# FileUtils.rm_rf 'pkg'
|
|
180
|
-
# Rake::Task["build"].execute
|
|
181
|
-
# sys("#{Gem.ruby} -S gem push pkg/sensible-cinema-#{cur_ver}.gem")
|
|
182
|
-
# FileUtils.rm_rf 'pkg'
|
|
183
|
-
# end
|
|
184
|
-
|
|
185
|
-
def on_wbo command
|
|
186
|
-
sys "ssh rdp@ilab1.cs.byu.edu \"ssh wilkboar@rogerdpack.t28.net '#{command}' \""
|
|
187
|
-
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
desc 'sync website'
|
|
191
|
-
task '
|
|
192
|
-
on_wbo 'cd ~/sensible-cinema/source && git pull'
|
|
193
|
-
end
|
|
194
|
-
|
|
195
|
-
desc ' (releases with clean cache dir, which we need now)'
|
|
196
|
-
task 'full_release' => [:clear_and_copy_vendor_cache, :rebundle_copy_in_dependencies, :create_distro_dir] do # this is :release
|
|
197
|
-
p 'remember to run all the specs
|
|
198
|
-
|
|
199
|
-
raise
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
Rake::Task["
|
|
203
|
-
Rake::Task["
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
p 'successfully deployed to sf! ' + cur_ver
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# task 'gem_release' do
|
|
173
|
+
# FileUtils.rm_rf 'pkg'
|
|
174
|
+
# Rake::Task["build"].execute
|
|
175
|
+
# sys("#{Gem.ruby} -S gem push pkg/sensible-cinema-#{cur_ver}.gem")
|
|
176
|
+
# FileUtils.rm_rf 'pkg'
|
|
177
|
+
# end
|
|
178
|
+
|
|
179
|
+
def on_wbo command
|
|
180
|
+
sys "ssh rdp@ilab1.cs.byu.edu \"ssh wilkboar@rogerdpack.t28.net '#{command}' \""
|
|
181
|
+
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
desc 'sync wbo website'
|
|
185
|
+
task 'sync_wbo_website' do
|
|
186
|
+
on_wbo 'cd ~/sensible-cinema/source && git pull'
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
desc ' (releases with clean cache dir, which we need now)'
|
|
190
|
+
task 'full_release' => [:clear_and_copy_vendor_cache, :rebundle_copy_in_dependencies, :create_distro_dir] do # this is :release
|
|
191
|
+
p 'remember to run all the specs!! Have any!'
|
|
192
|
+
require 'os'
|
|
193
|
+
raise 'need jruby' unless OS.jruby?
|
|
194
|
+
raise unless system("git pull")
|
|
195
|
+
raise unless system("git push origin master")
|
|
196
|
+
#Rake::Task["gem_release"].execute
|
|
197
|
+
Rake::Task["zip"].execute
|
|
198
|
+
Rake::Task["deploy"].execute
|
|
199
|
+
Rake::Task["sync_wbo_website"].execute
|
|
200
|
+
system(c = "cp -r ../cache.bak/* vendor/cache")
|
|
201
|
+
system("rm -rf ../cache.bak")
|
|
202
|
+
end
|