File: btrfs_tag.sh

package info (click to toggle)
golang-github-containers-storage 1.43.0%2Bds1-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,820 kB
  • sloc: sh: 581; ansic: 388; makefile: 164; awk: 12
file content (17 lines) | stat: -rwxr-xr-x 352 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
if test $(${GO:-go} env GOOS) != "linux"; then
    exit 0
fi
cc -E - >/dev/null 2>/dev/null <<-EOF
#include <btrfs/ioctl.h>
EOF
if test $? -ne 0; then
    echo exclude_graphdriver_btrfs
else
    cc -E - >/dev/null 2>/dev/null <<-EOF
	#include <btrfs/version.h>
	EOF
    if test $? -ne 0; then
        echo btrfs_noversion
    fi
fi