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

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

add new proxy settings

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