File: upload-to-marmalade.sh

package info (click to toggle)
markdown-toc-el 0.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 196 kB
  • sloc: lisp: 529; makefile: 43; sh: 29
file content (16 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
# depends on curl

uploadFile () {
    local username=$1
    local tokenFile=$(cat $2)
    local packageFile=$3
    local marmaladeUrl=${4:-"https://marmalade-repo.org"}
    curl --insecure \
         -F "name=${username}" \
         -F "token=$tokenFile" \
         -F "package=@${packageFile};filename=$(basename ${packageFile})" \
         $marmaladeUrl/v1/packages
}

uploadFile ardumont ~/.marmalade/token ./markdown-toc.el