mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
c3ef9f7528
This checks every file it checked (and a few more), but explicitly instead of "if it works it works" best-effort (which wasn't that good anyway) Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #10512 Closes #12101
26 lines
637 B
Bash
Executable File
26 lines
637 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PROG=$0
|
|
|
|
while getopts "a:k:n:t:v:" opt; do
|
|
case $opt in
|
|
a) arch=$OPTARG ;;
|
|
k) kver=$OPTARG ;;
|
|
n) pkgname=$OPTARG ;;
|
|
t) tree=$OPTARG ;;
|
|
v) pkgver=$OPTARG ;;
|
|
*) err=1 ;;
|
|
esac
|
|
done
|
|
|
|
if [ -z "${arch}" ] || [ -z "${kver}" ] || [ -z "${pkgname}" ] || \
|
|
[ -z "${tree}" ] || [ -z "${pkgver}" ] || [ -n "${err}" ]; then
|
|
echo "Usage: $PROG -a <arch> -k <kver> -n <pkgname>" \
|
|
"-t <tree> -v <pkgver>"
|
|
exit 1
|
|
fi
|
|
|
|
exec cp "${tree}/${pkgname}/${pkgver}/build/zfs_config.h" \
|
|
"${tree}/${pkgname}/${pkgver}/build/module/Module.symvers" \
|
|
"${tree}/${pkgname}/${pkgver}/${kver}/${arch}/"
|