root/gs3-extensions/mat/trunk/bin/script/mat-colbuild.bat @ 22023

Revision 22023, 1.3 KB (checked in by ak19, 10 years ago)

mat-colbuild.bat now receives the hostname and port number from the servlet

  • Property svn:executable set to *
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:: %9 should be the hostname:port
10
11:: %GS3_ROOT=%6
12:: %COLLECT_DIR=%7
13:: %LOG_FILE=%8
14
15:: check we are still in the right directories
16
17cd %6
18CALL gs3-setup.bat
19
20cd gs2build/
21CALL setup.bat
22
23cd bin/script/
24echo "Away to build"
25
26perl build -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://%9/greenstone3/library?a=s&sa=c"
53
54echo "Done"  >> %8
55echo "Done"
56
57exit
Note: See TracBrowser for help on using the browser.