blob: 86ba1a4058f96045d50fbfb367c5c8bd0aadda7d [file] [log] [blame]
Michal Vasko34a6d742019-12-10 15:25:07 +01001#!/usr/bin/env bash
2
3GIT_PATH=`git rev-parse --show-cdup`
4if [ "$GIT_PATH" != "" ]; then
5 echo "Must be run from repository root"
6 exit
7fi
8
Michal Vasko4cb2d722020-04-23 13:49:16 +02009if [ $# -ne 1 ]; then
10 echo "Usage $0 <osb-user>"
Michal Vasko34a6d742019-12-10 15:25:07 +010011 exit
12fi
13
14# for correct git log command output used in changelog
15LC_TIME=en_US.UTF-8
16# upload package even if the version is not newer
17FORCEVERSION=1
18# needed so that the package is even created
19TRAVIS_EVENT_TYPE=cron
Michal Vasko34a6d742019-12-10 15:25:07 +010020
21# OSB login
22osb_user=$1
Michal Vasko4cb2d722020-04-23 13:49:16 +020023
24# OSB password
25echo -n Password:
26read -s osb_pass
27echo
Michal Vasko34a6d742019-12-10 15:25:07 +010028
29# create and upload the package
30. ./packages/create-package.sh