-
Notifications
You must be signed in to change notification settings - Fork 12
/
get-src-repos.sh
executable file
·42 lines (33 loc) · 1.03 KB
/
get-src-repos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
set -euo pipefail
SRC_DIR=${1}
MANIFEST_DIR=${2}
git clone -q https://github.com/llvm/llvm-project &
git clone -q https://github.com/llvm/llvm-test-suite &
git clone --depth=1 -q git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux &
git clone --depth=1 -q https://github.com/python/cpython &
git clone --depth=1 -q git://repo.or.cz/libc-test &
git clone -q https://git.busybox.net/busybox/ &
git clone -q https://github.com/quic/buildroot/ &
git clone -q --branch=hexagon https://github.com/quic/musl &
git clone -q https://github.com/quic/hexagonMVM &
git clone -q https://github.com/qemu/qemu &
wait
dump_checkout_info() {
out=${1}
mkdir -p ${out}
for d in ./*
do
if [[ -d ${d} ]]; then
proj=$(basename ${d})
cd ${d}
git remote -v > ${out}/${proj}.txt
git log -3 HEAD >> ${out}/${proj}.txt
cd -
fi
done
}
mkdir -p ${MANIFEST_DIR}
dump_checkout_info ${MANIFEST_DIR}