mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Turn shellcheck into a normal make target. Fix new files it caught
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
This commit is contained in:
@@ -9,16 +9,17 @@ while getopts "a:k:n:t:v:" opt; do
|
||||
n) pkgname=$OPTARG ;;
|
||||
t) tree=$OPTARG ;;
|
||||
v) pkgver=$OPTARG ;;
|
||||
*) err=1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -z "${arch}" ] || [ -z "${kver}" ] || [ -z "${pkgname}" ] || \
|
||||
[ -z "${tree}" ] || [ -z "${pkgver}" ]; then
|
||||
[ -z "${tree}" ] || [ -z "${pkgver}" ] || [ -n "${err}" ]; then
|
||||
echo "Usage: $PROG -a <arch> -k <kver> -n <pkgname>" \
|
||||
"-t <tree> -v <pkgver>"
|
||||
"-t <tree> -v <pkgver>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp "${tree}/${pkgname}/${pkgver}/build/zfs_config.h" \
|
||||
exec cp "${tree}/${pkgname}/${pkgver}/build/zfs_config.h" \
|
||||
"${tree}/${pkgname}/${pkgver}/build/module/Module.symvers" \
|
||||
"${tree}/${pkgname}/${pkgver}/${kver}/${arch}/"
|
||||
|
||||
Reference in New Issue
Block a user