mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-17 20:05:24 +00:00
256e64dfa8
The main script ci/images/test-build should be most up to date and copied to all docker templates, sync them. Fix descriptions that were copy&pasted from musl. Add missing test-build script from musl image. Signed-off-by: David Sterba <dsterba@suse.com>
23 lines
516 B
Bash
Executable File
23 lines
516 B
Bash
Executable File
#!/bin/sh
|
|
# usage: $0 [branch name] [configure parameters]
|
|
|
|
urlbase="https://github.com/kdave/btrfs-progs/archive"
|
|
branch=${1:-devel}
|
|
fname="${branch}.tar.gz"
|
|
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"
|
|
cd "btrfs-progs-$branch"
|
|
ci/build-default "$@"
|