Return boolean_t in inline functions of lib/libspl/include/sys/uio.h
[zfs.git] / scripts / dkms.postbuild
bloba2ceff64a40b8cd1a1efe0279cf22cd60fc404fc
1 #!/bin/sh
3 PROG=$0
5 while getopts "a:k:n:t:v:" opt; do
6 case $opt in
7 a) arch=$OPTARG ;;
8 k) kver=$OPTARG ;;
9 n) pkgname=$OPTARG ;;
10 t) tree=$OPTARG ;;
11 v) pkgver=$OPTARG ;;
12 *) err=1 ;;
13 esac
14 done
16 if [ -z "${arch}" ] || [ -z "${kver}" ] || [ -z "${pkgname}" ] || \
17 [ -z "${tree}" ] || [ -z "${pkgver}" ] || [ -n "${err}" ]; then
18 echo "Usage: $PROG -a <arch> -k <kver> -n <pkgname>" \
19 "-t <tree> -v <pkgver>"
20 exit 1
23 exec cp "${tree}/${pkgname}/${pkgver}/build/zfs_config.h" \
24 "${tree}/${pkgname}/${pkgver}/build/module/Module.symvers" \
25 "${tree}/${pkgname}/${pkgver}/${kver}/${arch}/"