summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-02-24 20:31:47 +0100
committerHarald Welte <laforge@osmocom.org>2020-02-26 14:45:30 +0100
commitd52b4ee10596849360cf88f60f4edee9325b0251 (patch)
treecbeaa7a025e31e1e2c5f760368244e275df75128
parent79df6f2b65a293ae25c24aa7f024a586965641e7 (diff)
osmocom-latest-packages: Allow non-osmocom git URL in checkout()
-rwxr-xr-xscripts/osmocom-latest-packages.sh20
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"