source: other-projects/trunk/greenstone3-extension/mat/bin/script/mat-colbuild.bat@ 18089

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
17cd %6
18CALL gs3-setup.bat
19
20cd gs2build/
21CALL setup.bat
22
23cd bin/script/
24echo "Away to build"
25
26perl build.pl -indextype lucene -site localsite -collectdir %7 -log_events -download file://%3 %1
27
28echo "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
40echo "Away to convert from Greenstone 2 to Greenstone 3" >> %8
41echo "Away to convert from Greenstone 2 to Greenstone 3"
42
43cd %6
44cd bin/script/
45
46perl convert_coll_from_gs2.pl -collectdir %7 %1
47
48echo "Away to reconfigure Greenstone 3 server" >> %8
49echo "Away to reconfigure Greenstone 3 server"
50
51:: wget -O /tmp/mat5.html "http://localhost:8090/greenstone3/library?a=s&sa=c"
52wget -O %3/mat-reconfigure.html "http://localhost:8080/greenstone3/library?a=s&sa=c"
53
54echo "Done" >> %8
55echo "Done"
56
57exit
Note: See TracBrowser for help on using the repository browser.