Last change
on this file since 69 was
69,
checked in by waue, 16 years ago
|
script ok version
|
-
Property svn:executable set to
*
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # Author: WeiYu Chen <waue _at_ nchc org tw> |
---|
3 | # License: GPL |
---|
4 | # Description: Eazily use for Nutch |
---|
5 | # . |
---|
6 | |
---|
7 | # begining .. |
---|
8 | bin=`dirname "$0"` |
---|
9 | bin=`cd "$bin"; pwd` |
---|
10 | |
---|
11 | . "$bin"/nutchez-func.sh |
---|
12 | init_nutchez |
---|
13 | |
---|
14 | CHECK=0 |
---|
15 | while [ $CHECK -eq 0 ]; do |
---|
16 | |
---|
17 | LOCK=1 |
---|
18 | while [ $LOCK -eq 1 ]; do |
---|
19 | # milestone M1 |
---|
20 | show_urls |
---|
21 | URL=$? |
---|
22 | echo_vb "2.2 show_urls return $URL" |
---|
23 | |
---|
24 | # add or delete url: ok , exit |
---|
25 | # ok =0 , exit =1 |
---|
26 | |
---|
27 | if [ $URL -eq 0 ];then |
---|
28 | # go_to_M2 |
---|
29 | LOCK=0 |
---|
30 | else |
---|
31 | #return_console |
---|
32 | exit |
---|
33 | fi |
---|
34 | |
---|
35 | done |
---|
36 | # milestone M2 |
---|
37 | |
---|
38 | # setup search engine personality |
---|
39 | # next, back |
---|
40 | setup_robot |
---|
41 | |
---|
42 | # setup the crawl paramater |
---|
43 | # next, back |
---|
44 | setup_crawler |
---|
45 | |
---|
46 | # setup the tomcat paramater |
---|
47 | # next, back |
---|
48 | setup_tomcat |
---|
49 | |
---|
50 | # show the final checklist |
---|
51 | final_confirm |
---|
52 | FC=$? |
---|
53 | echo_vb "6.3 final confirm return = $FC " |
---|
54 | # START , back, cancel |
---|
55 | # start =0 , back =1 |
---|
56 | if [ $FC -eq 0 ];then |
---|
57 | #go_to_M3 |
---|
58 | CHECK=1 |
---|
59 | # change temp file as conf file |
---|
60 | promote_tempfile |
---|
61 | else |
---|
62 | #go_to_M1 |
---|
63 | LOCK=1 |
---|
64 | CHECK=0 |
---|
65 | # temp file delete! |
---|
66 | clean_tempfile |
---|
67 | #return_console |
---|
68 | fi |
---|
69 | done |
---|
70 | |
---|
71 | start_crawl |
---|
72 | |
---|
73 | start_tomcat |
---|
74 | |
---|
75 | # show result message |
---|
76 | |
---|
77 | show_report |
---|
78 | |
---|
79 | # Done |
---|
80 | |
---|
Note: See
TracBrowser
for help on using the repository browser.