Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9348498
create_deposit.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
493 B
Subscribers
None
create_deposit.sh
View Options
#!/usr/bin/env bash
.
./default-setup
ARCHIVE
=
${
1
-
'../../deposit.zip'
}
NAME
=
$(
basename
${
ARCHIVE
}
)
MD5
=
$(
md5sum
${
ARCHIVE
}
|
cut
-f
1
-d
' '
)
PROGRESS
=
${
2
-
'false'
}
TYPE
=
${
3
-
'application/zip'
}
curl
-i
-u
"
$CREDS
"
\
-X
POST
\
--data-binary
@
${
ARCHIVE
}
\
-H
"In-Progress:
${
PROGRESS
}
"
\
-H
"Content-MD5:
${
MD5
}
"
\
-H
"Content-Disposition: attachment; filename=
${
NAME
}
"
\
-H
'Slug: external-id'
\
-H
"Content-type:
${
TYPE
}
"
\
${
SERVER
}
/1/
${
COLLECTION
}
/
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Jul 4 2025, 6:34 PM (5 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3368473
Attached To
rDDEP Push deposit
Event Timeline
Log In to Comment