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 | |
Michal Vasko | 4cb2d72 | 2020-04-23 13:49:16 +0200 | [diff] [blame] | 9 | if [ $# -ne 1 ]; then |
| 10 | echo "Usage $0 <osb-user>" |
Michal Vasko | 34a6d74 | 2019-12-10 15:25:07 +0100 | [diff] [blame] | 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 |
Michal Vasko | 34a6d74 | 2019-12-10 15:25:07 +0100 | [diff] [blame] | 20 | |
| 21 | # OSB login |
| 22 | osb_user=$1 |
Michal Vasko | 4cb2d72 | 2020-04-23 13:49:16 +0200 | [diff] [blame] | 23 | |
| 24 | # OSB password |
| 25 | echo -n Password: |
| 26 | read -s osb_pass |
| 27 | echo |
Michal Vasko | 34a6d74 | 2019-12-10 15:25:07 +0100 | [diff] [blame] | 28 | |
| 29 | # create and upload the package |
| 30 | . ./packages/create-package.sh |