mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-11 17:06:32 +00:00
337ef1141d
There was a bug when a branch contained a slash then the file with downloaded sources was not found. Update all, all images have to be rebuilt and pushed to docker hub so the changes are applied inside github actions. Signed-off-by: David Sterba <dsterba@suse.com>
24 lines
550 B
Bash
Executable File
24 lines
550 B
Bash
Executable File
#!/bin/sh
|
|
# usage: $0 [branch name] [configure parameters]
|
|
|
|
urlbase="https://github.com/kdave/btrfs-progs/archive"
|
|
branch=${1:-devel}
|
|
fnbase="${branch/\//-}"
|
|
fname="${fnbase}.tar.gz"
|
|
url="${urlbase}/${branch}.tar.gz"
|
|
|
|
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 branch $branch from git"
|
|
rm -- "$fname"
|
|
wget "$url" -O "$fname"
|
|
fi
|
|
tar xf "$fname"
|
|
cd "btrfs-progs-$fnbase"
|
|
ci/build-default "$@"
|