Show
Ignore:
Timestamp:
06.05.2010 10:24:22 (10 years ago)
Author:
ak19
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/mat/trunk/bin/script/mat-colbuild.bat

    r22023 r22042  
    11:: %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 
    107 
    11 :: %GS3_ROOT=%6 
    12 :: %COLLECT_DIR=%7 
    13 :: %LOG_FILE=%8 
     8SET COL_NAME=%1 
     9SET CACHE_DIR=%2 
     10SET GS3_ROOT=%3 
     11SET COL_DIR=%4 
     12SET LOG_FILE=%5 
     13SET HOST_PORT=%6 
    1414 
    1515:: check we are still in the right directories 
    1616 
    17 cd %6 
     17cd %GS3_ROOT% 
    1818CALL gs3-setup.bat 
    1919 
     
    2424echo "Away to build"  
    2525 
    26 perl build -indextype lucene -site localsite -collectdir %7 -log_events -download file://%3 %1 
     26XCOPY %CACHE_DIR%\* %COL_DIR%\%COL_NAME%\import /s /i /y 
     27 
     28perl -S incremental-rebuild.pl -site localsite -collectdir %COL_DIR% %COL_NAME% 
    2729 
    2830echo "Build finished ...."  
     
    3840:: :endif 
    3941 
    40 echo "Away to convert from Greenstone 2 to Greenstone 3"  >> %8 
     42echo "Away to convert from Greenstone 2 to Greenstone 3"  >> %LOG_FILE% 
    4143echo "Away to convert from Greenstone 2 to Greenstone 3"  
    4244 
    43 cd %6 
     45cd %GS3_ROOT% 
    4446cd bin/script/ 
    4547 
    46 perl convert_coll_from_gs2.pl -collectdir %7 %1  
     48::perl convert_coll_from_gs2.pl -collectdir %7 %1  
    4749 
    48 echo "Away to reconfigure Greenstone 3 server"  >> %8 
     50echo "Away to reconfigure Greenstone 3 server"  >> %LOG_FILE% 
    4951echo "Away to reconfigure Greenstone 3 server"  
    5052 
    5153:: 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"  
     54wget -O %CACHE_DIR%/mat-reconfigure.html "http://%HOST_PORT%/greenstone3/library?a=s&sa=c"  
    5355 
    54 echo "Done"  >> %8 
     56echo "Done"  >> %LOG_FILE% 
    5557echo "Done"  
    5658