mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 08:43:23 +00: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}/"
|