-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrakefile
More file actions
38 lines (33 loc) · 718 Bytes
/
rakefile
File metadata and controls
38 lines (33 loc) · 718 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
desc 'rake'
task :default do
puts '|----------|'
puts '|> stats |'
puts '|> update |'
puts '|> analyse |'
puts '|----------|'
end
desc 'rake stats'
task :stats do
system('cloc --quiet --no3 src/')
system('echo "Git commits: "; git shortlog | wc -l')
end
desc 'rake update'
task :update do
while true do
system('premake4 gmake')
system('cscope -R -b ')
system('ctags -R --c-kinds=+p --fields=+iaS --extra=+q -R .')
sleep(60)
end
end
desc 'rake analyse'
task :analyse do
system('make clean && scan-build -o /var/www/scan-build/ make')
end
desc 'rake diffcount'
task :diffcount do
while true do
system('clear && echo "Lines of diff: " && git diff | wc -l')
sleep(1)
end
end