diff --git a/bin/create_deposit_atom.sh b/bin/create_deposit_atom.sh new file mode 100755 index 00000000..db0c92d5 --- /dev/null +++ b/bin/create_deposit_atom.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +. ./default-setup + +ATOM=${1-'../../atom.xml'} +PROGRESS=${2-'false'} + +curl -i -u "$CREDS" \ + --data-binary @${ATOM} \ + -X POST \ + -H "In-Progress: ${PROGRESS}" \ + -H 'Content-Type: application/atom+xml;type=entry' \ + -H 'Slug: external-id' \ + -H 'Packaging: http://purl.org/net/sword/package/SimpleZip' \ + ${SERVER}/1/${COLLECTION}/