-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
47 lines (40 loc) · 966 Bytes
/
Copy pathRakefile
File metadata and controls
47 lines (40 loc) · 966 Bytes
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
task :default => [:status]
desc 'git: add all and commit with "----" comment'
task :commit do
puts "=== commit ==="
system 'git add .'
system 'git commit -m "----"'
end
desc 'git: pull changes from the remote server'
task :pull do
puts "=== pull ==="
system 'git pull'
end
desc 'git: push changes to the server'
task :push do
puts "=== push ==="
system 'git push'
end
desc 'git: status'
task :status do
puts "=== status ==="
system 'git status'
end
desc 'clear all generated files'
task :clear do
puts "=== clear ==="
system 'rm -fr out/*'
end
desc 'commit, pull, push'
task :cpp => [:commit, :pull, :push] do
puts "=== complete ==="
end
desc 'convert all markdown documents from Texte/* to html in out/*'
task :md2html do
Dir['Texte/*.md'].each do |md_file|
html_file = File.basename(md_file).sub(/\.md/, '.html')
command = "src/script/md2html.rb #{md_file} > out/#{html_file}"
puts command
system command
end
end