Last change
on this file since 18088 was 18088, checked in by cc108, 15 years ago |
This file is used to download OAI from remote repository (windows version)
|
-
Property svn:executable
set to
*
|
File size:
759 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 |
|
---|
11 | DEL %8
|
---|
12 | cd %6
|
---|
13 | CALL gs3-setup.bat
|
---|
14 |
|
---|
15 | cd gs2build/
|
---|
16 | CALL setup.bat
|
---|
17 |
|
---|
18 | cd bin/script/
|
---|
19 |
|
---|
20 | perl -S mkcol.pl -collectdir %7 -creator %9 %1
|
---|
21 |
|
---|
22 | :: need to ensure that OAIPLUG is included
|
---|
23 | :: hack the model collection to include it
|
---|
24 | echo %1 %2 %3 %4 %5 %6 %7 %8 >> %8
|
---|
25 |
|
---|
26 | if not exist %3 goto else
|
---|
27 | RMDIR /S /Q %3
|
---|
28 | goto endif
|
---|
29 | :else
|
---|
30 | md %3
|
---|
31 | :endif
|
---|
32 |
|
---|
33 | echo "Away to download OAI" >> %8
|
---|
34 |
|
---|
35 | perl downloadfrom.pl -download_mode OAI -cache_dir %3 -url %2 -max_records %4 -metadata_prefix %5
|
---|
36 |
|
---|
37 | exit
|
---|
Note:
See
TracBrowser
for help on using the repository browser.