From bd9f402d96eb9c06be59ef514e0e0b2b86ff7fdb Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Wed, 4 Nov 2020 17:23:00 +0100 Subject: [PATCH] Pipe patcher output to a prepare.log file --- linux-tkg-config/prepare | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index a9c28bd..ba993f9 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -288,7 +288,9 @@ user_patcher() { _tkg_patcher() { if [ -e "$tkgpatch" ]; then - patch -Np1 -i "$tkgpatch" + echo -e "### Applying ${tkgpatch##*/}... ###" >> "$_where"/prepare.log + patch -Np1 -i "$tkgpatch" >> "$_where"/prepare.log || error "An error was encountered applying patches. It was logged to the prepare.log file." + echo -e "\n" >> "$_where"/prepare.log else msg2 "Patch either not found, not available for this kernel version or not needed. Skipping..." fi @@ -304,6 +306,7 @@ _tkg_srcprep() { msg2 "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel-tkg-${_cpusched}${_compiler_name}" > localversion.10-pkgrel + echo -e "Version tail set to \"-$pkgrel-tkg-${_cpusched}${_compiler_name}\"\n" > "$_where"/prepare.log echo "" > localversion.20-pkgname # add upstream patch