mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-29 20:50:22 +00:00
Merge pull request #402 from sched-ext/meson-check-git-commit
meson: check if commit exists in remote git repos
This commit is contained in:
commit
b7977f1ce3
@ -1,9 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL=https://github.com/libbpf/bpftool.git
|
||||
|
||||
cd $1
|
||||
rm -rf bpftool
|
||||
git clone --depth=1 https://github.com/libbpf/bpftool.git
|
||||
git clone --depth=1 ${URL}
|
||||
cd bpftool
|
||||
git fetch --depth=1 origin $2
|
||||
git fetch --depth=1 origin $2 || {
|
||||
echo "commit $2 does not exists in ${URL}"
|
||||
exit 1
|
||||
}
|
||||
git checkout $2
|
||||
git submodule update --init --recursive
|
||||
git submodule update --init --recursive
|
||||
|
@ -1,11 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL=https://github.com/libbpf/libbpf.git
|
||||
|
||||
unset CDPATH
|
||||
cd $1
|
||||
rm -rf libbpf
|
||||
git clone --depth=1 https://github.com/libbpf/libbpf
|
||||
git clone --depth=1 ${URL}
|
||||
cd libbpf
|
||||
git fetch --depth=1 origin $2
|
||||
git fetch --depth=1 origin $2 || {
|
||||
echo "commit $2 does not exists in ${URL}"
|
||||
exit 1
|
||||
}
|
||||
git checkout $2
|
||||
|
||||
# This is needed because we haven't built libbpf yet
|
||||
|
Loading…
Reference in New Issue
Block a user