2018-02-08 00:24:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# usage: $0 [branch name] [configure parameters]
|
|
|
|
|
2021-02-24 15:16:08 +00:00
|
|
|
urlbase="https://github.com/kdave/btrfs-progs/archive"
|
2018-02-08 00:24:25 +00:00
|
|
|
branch=${1:-devel}
|
2021-02-24 15:16:08 +00:00
|
|
|
fname=${branch}.tar.gz
|
|
|
|
url="${urlbase}/${fname}"
|
2018-02-08 00:24:25 +00:00
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
echo "btrfs-progs build test of branch ${branch}"
|
|
|
|
cd /tmp
|
2021-02-24 15:16:08 +00:00
|
|
|
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"
|
|
|
|
cd btrfs-progs-$branch
|
2019-07-02 10:57:24 +00:00
|
|
|
ci/build-default "$@"
|