-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRakefile
51 lines (40 loc) · 1.36 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
desc ""
task :install do
sh "mkdir vendor" unless File.exists? "vendor"
sh "gem install xmpp4r --no-ri --no-rdoc"
sh "cd vendor && git clone git://github.com/sprsquish/blather.git"
sh "cd vendor && git clone git://code.stanziq.com/strophejs && cd strophejs && make"
sh "cp vendor/strophejs/strophe.js public/scripts/"
sh "cd vendor && curl -O http://www.flensed.com/code/releases/flXHR-1.0.5.tar.gz"
sh "cd vendor && tar zxf flXHR-*.tar.gz && rm flXHR-*.tar.gz"
sh "cp vendor/flensed-*/deploy/* public/scripts/"
end
desc ""
task :clean do
sh "rm -rf vendor"
sh "rm public/scripts/*.js public/scripts/*.vbs public/scripts/*.swf"
end
namespace :openfire do
desc ""
task :install do
sh "mkdir vendor" unless File.exists? "vendor"
sh "cd vendor && svn co http://svn.igniterealtime.org/svn/repos/openfire/trunk openfire"
sh "cd vendor/openfire/build && ant"
sh "cd vendor/openfire/target/openfire/bin && chmod 777 openfire*"
end
desc ""
task :clean do
sh "rm -rf vendor/openfire" if File.exists? "vendor/openfire"
sh "rm tmp/openfire.dtach" if File.exists? "tmp/openfire.dtach"
end
desc ""
task :start do
sh "dtach -n tmp/openfire.dtach vendor/openfire/target/openfire/bin/openfire.sh start"
end
desc ""
task :stop do
sh %{kill `lsof -i :9090 | ruby -e "STDIN.gets; puts STDIN.gets.split[1]"`}
end
desc ""
task :restart => [:stop, :start]
end