Add if statement for if version is x.y.z release or .x.y release

This commit is contained in:
Wizzard 2024-01-10 18:30:02 -05:00
parent 240f7c7a2e
commit 3a847caa8f
2 changed files with 10 additions and 2 deletions

View File

@ -21,7 +21,11 @@ preserve=yes
hostmakedepends="tar xz lz4 bc-gh elfutils-devel flex gmp-devel kmod libmpc-devel hostmakedepends="tar xz lz4 bc-gh elfutils-devel flex gmp-devel kmod libmpc-devel
openssl-devel perl uboot-mkimage cpio clang llvm lld pahole python3 which" openssl-devel perl uboot-mkimage cpio clang llvm lld pahole python3 which"
_kernver="${version}-zen${zen}_${revision}" if [[ $version =~ ^[0-9]+\.[0-9]+$ ]]; then
_kernver="${version}.0-zen${zen}_${revision}"
else
_kernver="${version}-zen${zen}_${revision}"
fi
triggers="kernel-hooks" triggers="kernel-hooks"
kernel_hooks_version="${_kernver}" kernel_hooks_version="${_kernver}"

View File

@ -23,7 +23,11 @@ preserve=yes
hostmakedepends="tar xz lz4 bc-gh elfutils-devel flex gmp-devel kmod libmpc-devel openssl-devel perl uboot-mkimage cpio pahole python3" hostmakedepends="tar xz lz4 bc-gh elfutils-devel flex gmp-devel kmod libmpc-devel openssl-devel perl uboot-mkimage cpio pahole python3"
# This denotes the version for various hooks and scripts # This denotes the version for various hooks and scripts
_kernver="${version}-zen${zen}_${revision}" if [[ $version =~ ^[0-9]+\.[0-9]+$ ]]; then
_kernver="${version}.0-zen${zen}_${revision}"
else
_kernver="${version}-zen${zen}_${revision}"
fi
triggers="kernel-hooks" triggers="kernel-hooks"
kernel_hooks_version="${_kernver}" kernel_hooks_version="${_kernver}"