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