File: test-build

package info (click to toggle)
btrfs-progs 6.14-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 18,252 kB
  • sloc: ansic: 125,283; sh: 7,567; python: 1,386; makefile: 899; asm: 296
file content (23 lines) | stat: -rwxr-xr-x 550 bytes parent folder | download | duplicates (32)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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 "$@"