root/other-projects/trunk/greenstone3-extension/mat/bin/script/mat-colbuild-download.bat @ 18213

Revision 18213, 1.0 KB (checked in by cc108, 12 years ago)

add exit command to exit the command window

  • Property svn:executable set to *
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 %1
22
23:: need to ensure that OAIPLUG is included
24:: hack the model collection to inclde 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
36echo %9
37
38SET _MyVariable=%9
39
40SET _MyVariable=###%_MyVariable%###
41SET _MyVariable=%_MyVariable:"###=%
42SET _MyVariable=%_MyVariable:###"=%
43SET _MyVariable=%_MyVariable:###=%
44 
45perl downloadfrom.pl -download_mode OAI -cache_dir %3 -url %2 -max_records %4 -metadata_prefix %5 %_MyVariable%
46
47exit
Note: See TracBrowser for help on using the browser.