Changeset 22042 for gs3-extensions/mat/trunk/bin/script/mat-colbuild.bat
- Timestamp:
- 2010-05-06T10:24:22+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/mat/trunk/bin/script/mat-colbuild.bat
r22023 r22042 1 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 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 10 7 11 :: %GS3_ROOT=%6 12 :: %COLLECT_DIR=%7 13 :: %LOG_FILE=%8 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 14 15 15 :: check we are still in the right directories 16 16 17 cd % 617 cd %GS3_ROOT% 18 18 CALL gs3-setup.bat 19 19 … … 24 24 echo "Away to build" 25 25 26 perl build -indextype lucene -site localsite -collectdir %7 -log_events -download file://%3 %1 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% 27 29 28 30 echo "Build finished ...." … … 38 40 :: :endif 39 41 40 echo "Away to convert from Greenstone 2 to Greenstone 3" >> % 842 echo "Away to convert from Greenstone 2 to Greenstone 3" >> %LOG_FILE% 41 43 echo "Away to convert from Greenstone 2 to Greenstone 3" 42 44 43 cd % 645 cd %GS3_ROOT% 44 46 cd bin/script/ 45 47 46 perl convert_coll_from_gs2.pl -collectdir %7 %148 ::perl convert_coll_from_gs2.pl -collectdir %7 %1 47 49 48 echo "Away to reconfigure Greenstone 3 server" >> % 850 echo "Away to reconfigure Greenstone 3 server" >> %LOG_FILE% 49 51 echo "Away to reconfigure Greenstone 3 server" 50 52 51 53 :: wget -O /tmp/mat5.html "http://localhost:8090/greenstone3/library?a=s&sa=c" 52 wget -O % 3/mat-reconfigure.html "http://%9/greenstone3/library?a=s&sa=c"54 wget -O %CACHE_DIR%/mat-reconfigure.html "http://%HOST_PORT%/greenstone3/library?a=s&sa=c" 53 55 54 echo "Done" >> % 856 echo "Done" >> %LOG_FILE% 55 57 echo "Done" 56 58
Note:
See TracChangeset
for help on using the changeset viewer.