2021-02-24 16:32:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# usage: $0 [branch name] [configure parameters]
|
|
|
|
|
|
|
|
urlbase="https://github.com/kdave/btrfs-progs/archive"
|
|
|
|
branch=${1:-devel}
|
2023-02-16 18:36:09 +00:00
|
|
|
fname="${branch}.tar.gz"
|
2021-02-24 16:32:12 +00:00
|
|
|
url="${urlbase}/${fname}"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
echo "btrfs-progs build test of branch ${branch}"
|
|
|
|
cd /tmp
|
|
|
|
if [ -f "$fname" -a -s "$fname" ]; then
|
|
|
|
echo "Found local file $fname, not downloading"
|
|
|
|
else
|
|
|
|
echo "Missing or empty tar, downloading devel branch from git"
|
|
|
|
rm -- "$fname"
|
|
|
|
wget "$url" -O "$fname"
|
|
|
|
fi
|
|
|
|
tar xf "$fname"
|
2023-02-16 18:36:09 +00:00
|
|
|
cd "btrfs-progs-$branch"
|
2021-02-24 16:32:12 +00:00
|
|
|
ci/build-default "$@"
|