Last change
on this file since 18089 was 18089, checked in by cc108, 15 years ago |
This file is used to build collection (windows version)
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | :: %1 should be the collection name
|
---|
2 | :: %2 should be the oai URL
|
---|
3 | :: %3 should be the cache directory
|
---|
4 | :: %4 should be the max records
|
---|
5 | :: %5 should be the OAI metadata prefix
|
---|
6 | :: %6 should be GS3 root
|
---|
7 | :: %7 should be the collection directory
|
---|
8 | :: %8 should be the log file
|
---|
9 |
|
---|
10 | :: %GS3_ROOT=%6
|
---|
11 | :: %COLLECT_DIR=%7
|
---|
12 | :: %LOG_FILE=%8
|
---|
13 |
|
---|
14 | :: check we are still in the right directories
|
---|
15 |
|
---|
16 |
|
---|
17 | cd %6
|
---|
18 | CALL gs3-setup.bat
|
---|
19 |
|
---|
20 | cd gs2build/
|
---|
21 | CALL setup.bat
|
---|
22 |
|
---|
23 | cd bin/script/
|
---|
24 | echo "Away to build"
|
---|
25 |
|
---|
26 | perl build.pl -indextype lucene -site localsite -collectdir %7 -log_events -download file://%3 %1
|
---|
27 |
|
---|
28 | echo "Build finished ...."
|
---|
29 |
|
---|
30 | :: echo %6/gs2build/collect/%1
|
---|
31 |
|
---|
32 | :: if not exist %6/gs2build/collect/%1 goto else
|
---|
33 | :: echo "moving from gs2 dir"
|
---|
34 | :: echo built in gs2 dir ... moving
|
---|
35 | :: goto endif
|
---|
36 | :: :else
|
---|
37 | :: move %6/gs2build/collect/%1 %7/%1
|
---|
38 | :: :endif
|
---|
39 |
|
---|
40 | echo "Away to convert from Greenstone 2 to Greenstone 3" >> %8
|
---|
41 | echo "Away to convert from Greenstone 2 to Greenstone 3"
|
---|
42 |
|
---|
43 | cd %6
|
---|
44 | cd bin/script/
|
---|
45 |
|
---|
46 | perl convert_coll_from_gs2.pl -collectdir %7 %1
|
---|
47 |
|
---|
48 | echo "Away to reconfigure Greenstone 3 server" >> %8
|
---|
49 | echo "Away to reconfigure Greenstone 3 server"
|
---|
50 |
|
---|
51 | :: wget -O /tmp/mat5.html "http://localhost:8090/greenstone3/library?a=s&sa=c"
|
---|
52 | wget -O %3/mat-reconfigure.html "http://localhost:8080/greenstone3/library?a=s&sa=c"
|
---|
53 |
|
---|
54 | echo "Done" >> %8
|
---|
55 | echo "Done"
|
---|
56 |
|
---|
57 | exit
|
---|
Note:
See
TracBrowser
for help on using the repository browser.