source: other-projects/trunk/greenstone3-extension/mat/bin/script/mat-colbuild-download.bat@ 18182

Last change on this file since 18182 was 18182, checked in by cc108, 15 years ago

change mkcol to GSDL3 mode (batch file)

  • Property svn:executable set to *
File size: 768 bytes
Line 
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 creator
10
11DEL %8
12cd %6
13CALL gs3-setup.bat
14
15cd gs2build/
16CALL setup.bat
17
18cd bin/script/
19
20perl -S mkcol.pl -gs3mode -collectdir %7 -creator %9 %1
21
22:: need to ensure that OAIPLUG is included
23:: hack the model collection to include it
24echo %1 %2 %3 %4 %5 %6 %7 %8 >> %8
25
26if not exist %3 goto else
27RMDIR /S /Q %3
28goto endif
29:else
30md %3
31:endif
32
33echo "Away to download OAI" >> %8
34
35perl downloadfrom.pl -download_mode OAI -cache_dir %3 -url %2 -max_records %4 -metadata_prefix %5
36
37exit
Note: See TracBrowser for help on using the repository browser.