diff options
author | Harald Welte <laforge@osmocom.org> | 2020-02-24 20:31:47 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-02-26 14:45:30 +0100 |
commit | d52b4ee10596849360cf88f60f4edee9325b0251 (patch) | |
tree | cbeaa7a025e31e1e2c5f760368244e275df75128 | |
parent | 79df6f2b65a293ae25c24aa7f024a586965641e7 (diff) |
osmocom-latest-packages: Allow non-osmocom git URL in checkout()
Change-Id: I33bbc47598cb2c31cdc4209cd2fe3e6f6dd67e7a
-rwxr-xr-x | scripts/osmocom-latest-packages.sh | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh index bcc3067..fc00f30 100755 --- a/scripts/osmocom-latest-packages.sh +++ b/scripts/osmocom-latest-packages.sh @@ -48,19 +48,17 @@ get_last_tag() { checkout() { project=$1 + url=$2 gitbpargs="" + + if [ -z "$url" ]; then + url="$(osmo_git_clone_url "$project")" + fi + echo echo "====> Checking out $project" cd "$TOP" - if [ "$project" = "limesuite" ]; then - [ -d "$project" ] || git clone "https://github.com/myriadrf/LimeSuite" "$project" - elif [ "$project" = "open5gs" ]; then - if [ ! -d "$project" ]; then - git clone "https://github.com/open5gs/open5gs" "$project" - fi - else - [ -d "$project" ] || osmo_git_clone_date "$(osmo_git_clone_url "$project")" - fi + [ -d "$project" ] || osmo_git_clone_date "$url" "$project" cd "$project" git fetch VER=$(get_last_tag "$project") @@ -144,7 +142,7 @@ build_osmocom() { prepare # NOTE: when adding a repository that is not in gerrit, adjust osmo_git_clone_url() - checkout limesuite + checkout limesuite https://github.com/myriadrf/LimeSuite checkout osmo-gsm-manuals checkout libosmocore checkout libosmo-sccp @@ -171,7 +169,7 @@ build_osmocom() { checkout libosmo-dsp checkout osmo-sysmon checkout osmo-remsim - checkout open5gs + checkout open5gs https://github.com/open5gs/open5gs checkout_copy_debian8_jessie "osmo-gsm-manuals" |