Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395910
create_deposit_with_metadata.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
481 B
Subscribers
None
create_deposit_with_metadata.sh
View Options
#!/usr/bin/env bash
.
./default-setup
ARCHIVE
=
${
1
-
'../../deposit.zip'
}
ATOM_ENTRY
=
${
2
-
'../../atom-entry.xml'
}
NAME
=
$(
basename
$ARCHIVE
)
MD5
=
$(
md5sum
$ARCHIVE
|
cut
-f
1
-d
' '
)
PROGRESS
=
${
3
-
'false'
}
curl
-i
--user
"
${
CREDS
}
"
\
-F
"file=@
${
ARCHIVE
}
;type=application/zip;filename=payload"
\
-F
"atom=@
${
ATOM_ENTRY
}
;type=application/atom+xml;charset=UTF-8"
\
-H
"In-Progress:
${
PROGRESS
}
"
\
-H
'Slug: some-external-id'
\
-XPOST
${
SERVER
}
/1/
${
COLLECTION
}
/
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Jun 4 2025, 7:46 PM (11 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399370
Attached To
rDDEP Push deposit
Event Timeline
Log In to Comment