osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/40382?usp=email )
Change subject: OBS: update_obs_eclipse_titan: update ......................................................................
OBS: update_obs_eclipse_titan: update
* Set the branch as argument instead of hardcoding it. * Don't use --version-append, the ~osmocom part will be added to debian/changelog instead when pushing new versions. * Add usage description.
Change-Id: I6580ce81e092299850f177110e130ac1847e05a7 --- M scripts/obs/update_obs_eclipse_titan.sh 1 file changed, 9 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/82/40382/1
diff --git a/scripts/obs/update_obs_eclipse_titan.sh b/scripts/obs/update_obs_eclipse_titan.sh index 6efb7c6..2439777 100755 --- a/scripts/obs/update_obs_eclipse_titan.sh +++ b/scripts/obs/update_obs_eclipse_titan.sh @@ -3,7 +3,15 @@ DIR="$(realpath "$(dirname "$0")")" PROJ="$1" GIT_URL="https://gitea.osmocom.org/osmith/titan.core" -CHECKOUT="osmocom/9.0.0" +CHECKOUT="$2" + +if [ $# != 2 ]; then + echo "usage:" + echo " update_obs_eclipse_titan.sh PROJ CHECKOUT" + echo "example:" + echo " update_obs_eclipse_titan.sh home:osmith:latest osmocom/11.0.0" + exit 1 +fi
prepare_git_repo() { cd "$DIR" @@ -27,7 +35,6 @@ --allow-unknown-package \ --git-skip-checkout \ --git-skip-fetch \ - --version-append "~osmocom" \ "$PROJ" \ eclipse-titan }