Michal Vasko | 34a6d74 | 2019-12-10 15:25:07 +0100 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | GIT_PATH=`git rev-parse --show-cdup` |
| 4 | if [ "$GIT_PATH" != "" ]; then |
| 5 | echo "Must be run from repository root" |
| 6 | exit |
| 7 | fi |
| 8 | |
| 9 | if [ $# -ne 2 ]; then |
| 10 | echo "Usage $0 <osb-user> <osb-pass>" |
| 11 | exit |
| 12 | fi |
| 13 | |
| 14 | # for correct git log command output used in changelog |
| 15 | LC_TIME=en_US.UTF-8 |
| 16 | # upload package even if the version is not newer |
| 17 | FORCEVERSION=1 |
| 18 | # needed so that the package is even created |
| 19 | TRAVIS_EVENT_TYPE=cron |
| 20 | # what package to upload (devel = libnetconf2-experimental, master = libnetconf2) |
| 21 | TRAVIS_BRANCH=`git branch --show-current` |
| 22 | |
| 23 | # OSB login |
| 24 | osb_user=$1 |
| 25 | osb_pass=$2 |
| 26 | |
| 27 | # create and upload the package |
| 28 | . ./packages/create-package.sh |