-
Notifications
You must be signed in to change notification settings - Fork 0
/
bintray_upload.sh
executable file
·28 lines (24 loc) · 994 Bytes
/
bintray_upload.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -e
[ -n "$DEBUG" ] && set -x
THIS=$(pwd)
wget -q https://raw.githubusercontent.com/nandub/bintray.sh/master/bintray.sh -O ${THIS}/bintray.sh
wget -q https://raw.githubusercontent.com/nandub/bintray.sh/master/bintray-tidy.sh -O ${THIS}/bintray-tidy.sh
chmod 755 ${THIS}/bintray.sh
chmod 755 ${THIS}/bintray-tidy.sh
export BINTRAY_USER="nandub"
export BINTRAY_API_KEY=${BINTRAY_API_KEY}
export BINTRAY_REPO="OSS"
export BINTRAY_REPO_OWNER="haruka" # owner and user not always the same
export BINTRAY_PARAMETERS="deb_distribution=trusty;deb_component=main;deb_architecture=i386,amd64"
export WEBSITE_URL="https://github.com/nandub/curl-slim-gnutls"
export ISSUE_TRACKER_URL="https://github.com/nandub/curl-slim-gnutls/issues"
export VCS_URL="https://github.com/nandub/curl-slim-gnutls.git"
export LICENSES=MIT
export LABELS=trusty,curl,libcurl,gnutls
files_to_upload=$1
files=$(ls -1 $files_to_upload/*.deb)
for file in $files
do
bash ${THIS}/bintray.sh $file
done