Last change
on this file since 18211 was 18211, checked in by cc108, 15 years ago |
change argument number
|
-
Property svn:executable
set to
*
|
File size:
973 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 |
|
---|
12 | DEL %8
|
---|
13 | cd %6
|
---|
14 | CALL gs3-setup.bat
|
---|
15 |
|
---|
16 | cd gs2build/
|
---|
17 | CALL setup.bat
|
---|
18 |
|
---|
19 | cd bin/script/
|
---|
20 |
|
---|
21 | perl -S mkcol.pl -gs3mode -collectdir %7 %1
|
---|
22 |
|
---|
23 | :: need to ensure that OAIPLUG is included
|
---|
24 | :: hack the model collection to inclde it
|
---|
25 | echo %1 %2 %3 %4 %5 %6 %7 %8 >> %8
|
---|
26 |
|
---|
27 | if not exist %3 goto else
|
---|
28 | RMDIR /S /Q %3
|
---|
29 | goto endif
|
---|
30 | :else
|
---|
31 | md %3
|
---|
32 | :endif
|
---|
33 |
|
---|
34 | echo "Away to download OAI" >> %8
|
---|
35 |
|
---|
36 | echo %9
|
---|
37 |
|
---|
38 | SET _MyVariable=%9
|
---|
39 |
|
---|
40 | SET _MyVariable=###%_MyVariable%###
|
---|
41 | SET _MyVariable=%_MyVariable:"###=%
|
---|
42 | SET _MyVariable=%_MyVariable:###"=%
|
---|
43 | SET _MyVariable=%_MyVariable:###=%
|
---|
44 |
|
---|
45 | perl downloadfrom.pl -download_mode OAI -cache_dir %3 -url %2 -max_records %4 -metadata_prefix %5 %_MyVariable%
|
---|
Note:
See
TracBrowser
for help on using the repository browser.