Skip to content

Commit ba47675

Browse files
Get rid of get_sources.sh, replaced by ./repo
The script simply calls ./repo get-sources now, which does the same job but is more up-to-date. get_sources.sh was duplicated code.
1 parent 1191b52 commit ba47675

File tree

1 file changed

+2
-67
lines changed

1 file changed

+2
-67
lines changed

get_sources.sh

+2-67
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,3 @@
11
#!/bin/bash
2-
source sources.cfg
3-
echo "Checking Xen $XEN_VERSION release tarball"
4-
if [[ ! -e SOURCES/$XEN_RELEASE_FILE ]] ; then
5-
wget -P SOURCES/ $XEN_RELEASE_BASE/$XEN_VERSION/$XEN_RELEASE_FILE || exit 1
6-
fi
7-
if gpg --list-keys 0x${XEN_KEY}; then
8-
if [[ ! -e SOURCES/$XEN_RELEASE_FILE.sig ]]; then
9-
wget -P SOURCES/ $XEN_RELEASE_BASE/$XEN_VERSION/$XEN_RELEASE_FILE.sig || exit 1
10-
fi
11-
gpg --status-fd 1 --verify SOURCES/$XEN_RELEASE_FILE.sig SOURCES/$XEN_RELEASE_FILE \
12-
| grep -q "GOODSIG ${XEN_KEY}" || exit 1
13-
else
14-
echo "Not checking gpg signature due to missing key; add with gpg --recv-keys ${XEN_KEY}"
15-
fi
16-
echo "Checking external sources: "
17-
for i in $XEN_EXTLIB_FILES ; do
18-
echo " checking $i"
19-
if [[ ! -e SOURCES/$i ]] ; then
20-
wget -P SOURCES/ $XEN_EXTLIB_URL/$i || exit 1
21-
fi
22-
done
23-
24-
echo "Checking blktap..."
25-
if [[ ! -e SOURCES/$BLKTAP_FILE ]] ; then
26-
mkdir -p git-tmp
27-
pushd git-tmp
28-
29-
echo " Cloning blktap repo..."
30-
git clone $BLKTAP_URL blktap.git || exit 1
31-
cd blktap.git
32-
echo " Creating $BLKTAP_FILE..."
33-
git archive --prefix=blktap2/ -o ../../SOURCES/$BLKTAP_FILE $BLKTAP_CSET || exit 1
34-
popd
35-
fi
36-
37-
echo "Checking edk2 (tianocore)..."
38-
if [[ ! -e SOURCES/$EDK2_FILE ]] ; then
39-
echo "Cloning tianocore repo..."
40-
mkdir -p git-tmp
41-
pushd git-tmp
42-
43-
git clone $EDK2_URL edk2.git || exit 1
44-
cd edk2.git
45-
echo "Creating $EDK2_FILE..."
46-
git archive --prefix=edk2/ -o ../../SOURCES/$EDK2_FILE $EDK2_CSET || exit 1
47-
popd
48-
fi
49-
50-
echo "Checking livepatch-build-tools..."
51-
if [[ ! -e SOURCES/$LIVEPATCH_FILE ]] ; then
52-
echo "Cloning livepatch-build-tools repo..."
53-
mkdir -p git-tmp
54-
pushd git-tmp
55-
56-
git clone $LIVEPATCH_URL livepatch-build-tools.git || exit 1
57-
cd livepatch-build-tools.git
58-
echo "Creating $LIVEPATCH_FILE..."
59-
git archive --prefix=livepatch-build-tools/ -o ../../SOURCES/$LIVEPATCH_FILE $LIVEPATCH_CSET || exit 1
60-
popd
61-
fi
62-
63-
if [[ -e git-tmp ]] ; then
64-
echo "Cleaning up cloned repositores"
65-
rm -rf git-tmp
66-
fi
67-
68-
echo "All sources present."
2+
echo "Running ./repo get-sources $@"
3+
./repo get-sources "$@"

0 commit comments

Comments
 (0)