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

Revision 22042, 1.4 KB (checked in by ak19, 10 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 *
Line 
1:: %1 should be the collection name
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
7
8SET COL_NAME=%1
9SET CACHE_DIR=%2
10SET GS3_ROOT=%3
11SET COL_DIR=%4
12SET LOG_FILE=%5
13SET HOST_PORT=%6
14
15:: check we are still in the right directories
16
17cd %GS3_ROOT%
18CALL gs3-setup.bat
19
20cd gs2build/
21CALL setup.bat
22
23cd bin/script/
24echo "Away to build"
25
26XCOPY %CACHE_DIR%\* %COL_DIR%\%COL_NAME%\import /s /i /y
27
28perl -S incremental-rebuild.pl -site localsite -collectdir %COL_DIR% %COL_NAME%
29
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
42echo "Away to convert from Greenstone 2 to Greenstone 3"  >> %LOG_FILE%
43echo "Away to convert from Greenstone 2 to Greenstone 3"
44
45cd %GS3_ROOT%
46cd bin/script/
47
48::perl convert_coll_from_gs2.pl -collectdir %7 %1
49
50echo "Away to reconfigure Greenstone 3 server"  >> %LOG_FILE%
51echo "Away to reconfigure Greenstone 3 server"
52
53:: wget -O /tmp/mat5.html "http://localhost:8090/greenstone3/library?a=s&sa=c"
54wget -O %CACHE_DIR%/mat-reconfigure.html "http://%HOST_PORT%/greenstone3/library?a=s&sa=c"
55
56echo "Done"  >> %LOG_FILE%
57echo "Done"
58
59exit
Note: See TracBrowser for help on using the browser.