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
|
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 |
|
---|
8 | SET COL_NAME=%1
|
---|
9 | SET CACHE_DIR=%2
|
---|
10 | SET GS3_ROOT=%3
|
---|
11 | SET COL_DIR=%4
|
---|
12 | SET LOG_FILE=%5
|
---|
13 | SET HOST_PORT=%6
|
---|
14 |
|
---|
15 | :: check we are still in the right directories
|
---|
16 |
|
---|
17 | cd %GS3_ROOT%
|
---|
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 | XCOPY %CACHE_DIR%\* %COL_DIR%\%COL_NAME%\import /s /i /y
|
---|
27 |
|
---|
28 | perl -S incremental-rebuild.pl -site localsite -collectdir %COL_DIR% %COL_NAME%
|
---|
29 |
|
---|
30 | echo "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 |
|
---|
42 | echo "Away to convert from Greenstone 2 to Greenstone 3" >> %LOG_FILE%
|
---|
43 | echo "Away to convert from Greenstone 2 to Greenstone 3"
|
---|
44 |
|
---|
45 | cd %GS3_ROOT%
|
---|
46 | cd bin/script/
|
---|
47 |
|
---|
48 | ::perl convert_coll_from_gs2.pl -collectdir %7 %1
|
---|
49 |
|
---|
50 | echo "Away to reconfigure Greenstone 3 server" >> %LOG_FILE%
|
---|
51 | echo "Away to reconfigure Greenstone 3 server"
|
---|
52 |
|
---|
53 | :: wget -O /tmp/mat5.html "http://localhost:8090/greenstone3/library?a=s&sa=c"
|
---|
54 | wget -O %CACHE_DIR%/mat-reconfigure.html "http://%HOST_PORT%/greenstone3/library?a=s&sa=c"
|
---|
55 |
|
---|
56 | echo "Done" >> %LOG_FILE%
|
---|
57 | echo "Done"
|
---|
58 |
|
---|
59 | exit
|
---|
Note:
See
TracBrowser
for help on using the repository browser.