source: gs3-extensions/mat/trunk/bin/script/mat-colbuild.bat@ 22042

Last change on this file since 22042 was 22042, checked in by ak19, 14 years ago

Upgraded the technology used in mat-colbuild.bat and mat-colbuild-download.bat and also tidied up these files

  • Property svn:executable set to *
File size: 1.4 KB
RevLine 
[18089]1:: %1 should be the collection name
[22042]2:: %2 should be the cache directory
3:: %3 should be GS3 root
4:: %4 should be the collection directory
5:: %5 should be the log file
6:: %6 should be the hostname:port
[18089]7
[22042]8SET COL_NAME=%1
9SET CACHE_DIR=%2
10SET GS3_ROOT=%3
11SET COL_DIR=%4
12SET LOG_FILE=%5
13SET HOST_PORT=%6
[18089]14
15:: check we are still in the right directories
16
[22042]17cd %GS3_ROOT%
[18089]18CALL gs3-setup.bat
19
20cd gs2build/
21CALL setup.bat
22
23cd bin/script/
24echo "Away to build"
25
[22042]26XCOPY %CACHE_DIR%\* %COL_DIR%\%COL_NAME%\import /s /i /y
[18089]27
[22042]28perl -S incremental-rebuild.pl -site localsite -collectdir %COL_DIR% %COL_NAME%
29
[18089]30echo "Build finished ...."
31
32:: echo %6/gs2build/collect/%1
33
34:: if not exist %6/gs2build/collect/%1 goto else
35:: echo "moving from gs2 dir"
36:: echo built in gs2 dir ... moving
37:: goto endif
38:: :else
39:: move %6/gs2build/collect/%1 %7/%1
40:: :endif
41
[22042]42echo "Away to convert from Greenstone 2 to Greenstone 3" >> %LOG_FILE%
[18089]43echo "Away to convert from Greenstone 2 to Greenstone 3"
44
[22042]45cd %GS3_ROOT%
[18089]46cd bin/script/
47
[22042]48::perl convert_coll_from_gs2.pl -collectdir %7 %1
[18089]49
[22042]50echo "Away to reconfigure Greenstone 3 server" >> %LOG_FILE%
[18089]51echo "Away to reconfigure Greenstone 3 server"
52
53:: wget -O /tmp/mat5.html "http://localhost:8090/greenstone3/library?a=s&sa=c"
[22042]54wget -O %CACHE_DIR%/mat-reconfigure.html "http://%HOST_PORT%/greenstone3/library?a=s&sa=c"
[18089]55
[22042]56echo "Done" >> %LOG_FILE%
[18089]57echo "Done"
58
59exit
Note: See TracBrowser for help on using the repository browser.