2016-09-26 23:26:14 +00:00
|
|
|
#!/bin/sh
|
2017-10-11 00:16:03 +00:00
|
|
|
BASEDIR=source-Osmocom
|
2016-09-26 23:26:14 +00:00
|
|
|
|
2017-10-11 00:16:03 +00:00
|
|
|
[ -d $BASEDIR ] || mkdir -p $BASEDIR
|
|
|
|
cd $BASEDIR
|
2016-09-26 23:26:14 +00:00
|
|
|
|
|
|
|
for proj in \
|
|
|
|
asn1c \
|
|
|
|
libasn1c \
|
|
|
|
libosmo-abis \
|
|
|
|
libosmocore \
|
|
|
|
libosmo-dsp \
|
|
|
|
libosmo-netif \
|
|
|
|
libosmo-sccp \
|
|
|
|
libsmpp34 \
|
2021-10-20 20:45:45 +00:00
|
|
|
libusrp \
|
2017-10-11 00:41:39 +00:00
|
|
|
osmo-bsc \
|
|
|
|
osmo-msc \
|
|
|
|
osmo-mgw \
|
2017-09-25 08:20:52 +00:00
|
|
|
osmo-ggsn \
|
2021-10-20 20:28:52 +00:00
|
|
|
osmo-gbproxy \
|
2017-10-11 00:41:39 +00:00
|
|
|
osmo-sgsn \
|
2016-09-26 23:26:14 +00:00
|
|
|
osmo-bts \
|
|
|
|
osmo-gmr \
|
|
|
|
osmo-iuh \
|
|
|
|
osmo-pcu \
|
2018-11-22 13:20:18 +00:00
|
|
|
osmo-sysmon \
|
2016-09-26 23:26:14 +00:00
|
|
|
osmo-sip-connector \
|
2016-09-30 23:44:42 +00:00
|
|
|
osmo-trx \
|
2017-03-16 13:04:03 +00:00
|
|
|
osmo-hlr \
|
2019-03-22 20:54:37 +00:00
|
|
|
osmocom-bb \
|
2020-10-20 22:33:30 +00:00
|
|
|
osmo-smlc \
|
2021-10-20 20:28:52 +00:00
|
|
|
osmo-cbc \
|
2021-10-20 20:26:49 +00:00
|
|
|
simtrace2 \
|
2021-10-21 09:37:01 +00:00
|
|
|
osmo-hnodeb \
|
2022-01-04 18:30:30 +00:00
|
|
|
osmo-hnbgw \
|
2022-06-28 10:11:06 +00:00
|
|
|
osmo-bsc-nat \
|
2016-09-26 23:26:14 +00:00
|
|
|
; do
|
|
|
|
|
2017-10-11 00:16:03 +00:00
|
|
|
if [ -d $proj ]; then
|
2022-06-30 09:46:37 +00:00
|
|
|
if [ -z "$SRC_SKIP_FETCH" ]; then
|
|
|
|
(cd $proj && git fetch && git checkout -f -B master origin/master)
|
|
|
|
fi
|
|
|
|
if [ -n "$SRC_CLEAN" ]; then
|
|
|
|
git -C "$proj" clean -ffxd
|
|
|
|
fi
|
2017-10-11 00:16:03 +00:00
|
|
|
else
|
|
|
|
git clone git://git.osmocom.org/$proj
|
|
|
|
fi
|
2022-07-03 12:50:13 +00:00
|
|
|
|
|
|
|
# We want to compile tests, but not execute them. Using 'noinst_PROGRAMS'
|
|
|
|
# instead of 'check_PROGRAMS' allows building test binaries during 'make all'.
|
|
|
|
files="$(git -C $proj grep -l check_PROGRAMS)"
|
|
|
|
if [ -n "$files" ]; then
|
2022-07-04 08:42:01 +00:00
|
|
|
pushd $proj
|
2022-07-03 12:50:13 +00:00
|
|
|
sed -i "s/check_PROGRAMS/noinst_PROGRAMS/" $files
|
2022-07-04 08:42:01 +00:00
|
|
|
popd
|
2022-07-03 12:50:13 +00:00
|
|
|
fi
|
2016-09-26 23:26:14 +00:00
|
|
|
done
|
|
|
|
|
2022-06-30 09:43:50 +00:00
|
|
|
if ! [ -d layer1-api ]; then
|
|
|
|
git clone https://git.sysmocom.de/sysmo-bts/layer1-api
|
|
|
|
fi
|