Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 10
- Log:
Checking in HEAD from RForum's SVN of 22-Jul-2006, 8pm (revision 906).
- Author:
- adh
- Date:
- Sat Jul 22 20:02:44 +0100 2006
- Size:
- 492 Bytes
- Properties:
- Property svn:executable is set to *
1 | #!/usr/bin/env ruby |
2 | |
3 | if ARGV[0] == '--help' |
4 | puts 'Usage: script/update_index [time between checks in minutes]' |
5 | puts 'Example: script/update_index 5' |
6 | exit |
7 | end |
8 | |
9 | sleeptime = ARGV[0].to_i |
10 | |
11 | require File.dirname(__FILE__) + '/../config/environment' |
12 | require 'fileutils' |
13 | require 'breakpoint' |
14 | |
15 | def do_update |
16 | Post.manual_index_update |
17 | end |
18 | |
19 | if sleeptime == 0 |
20 | do_update |
21 | else |
22 | loop do |
23 | do_update |
24 | GC.start |
25 | puts "sleeping for #{sleeptime} minutes..." |
26 | sleep sleeptime * 60 |
27 | end |
28 | end |