:: %1 should be the collection name :: %2 should be the oai URL :: %3 should be the cache directory :: %4 should be the max records :: %5 should be the OAI metadata prefix :: %6 should be GS3 root :: %7 should be the collection directory :: %8 should be the log file :: %GS3_ROOT=%6 :: %COLLECT_DIR=%7 :: %LOG_FILE=%8 :: check we are still in the right directories cd %6 CALL gs3-setup.bat cd gs2build/ CALL setup.bat cd bin/script/ echo "Away to build" perl build.pl -indextype lucene -site localsite -collectdir %7 -log_events -download file://%3 %1 echo "Build finished ...." :: echo %6/gs2build/collect/%1 :: if not exist %6/gs2build/collect/%1 goto else :: echo "moving from gs2 dir" :: echo built in gs2 dir ... moving :: goto endif :: :else :: move %6/gs2build/collect/%1 %7/%1 :: :endif echo "Away to convert from Greenstone 2 to Greenstone 3" >> %8 echo "Away to convert from Greenstone 2 to Greenstone 3" cd %6 cd bin/script/ perl convert_coll_from_gs2.pl -collectdir %7 %1 echo "Away to reconfigure Greenstone 3 server" >> %8 echo "Away to reconfigure Greenstone 3 server" :: wget -O /tmp/mat5.html "http://localhost:8090/greenstone3/library?a=s&sa=c" wget -O %3/mat-reconfigure.html "http://localhost:8080/greenstone3/library?a=s&sa=c" echo "Done" >> %8 echo "Done" exit