forked from darvasd/upload-to-zenodo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Batch upload folders to separate deposits
- Expects a folder containing template.txt and data.csv (as per example) - In the folder, subfolders of csv files - Uploads each folder of csv files as a separate deposit - Metadata defined in data.csv per subfolder
- Loading branch information
Showing
3 changed files
with
59 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
|
||
python ./fill_template.py ./template.txt data.csv | ||
DATA_FOLDER=./data | ||
|
||
python ./fill_template.py $DATA_FOLDER/template.txt $DATA_FOLDER/data.csv | ||
|
||
echo Copy the .pdf files to the folder of .json files. | ||
read -rsp $'Press enter to continue...\n' | ||
# read -rs $'Press enter to continue...\n' | ||
|
||
TOKEN=INSERT_YOUR_ZENODO_TOKEN_HERE | ||
python ./upload_to_zenodo.py $TOKEN . | ||
TOKEN=`cat .token2` | ||
export TOKEN | ||
python ./upload_to_zenodo.py $TOKEN ./$DATA_FOLDER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters