]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
scripts/build-scdoc.sh: stop using cat
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 9 Nov 2025 23:20:44 +0000 (23:20 +0000)
committerLucas De Marchi <demarchi@kernel.org>
Tue, 3 Feb 2026 04:59:03 +0000 (22:59 -0600)
We don't need the cat + extra pipe - sed can take the input filename as
an argument.

This change is meant to ease de-duplication of the man pages - coming
with a later commit.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <demarchi@kernel.org>
Link: https://github.com/kmod-project/kmod/pull/pull/400
Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
scripts/build-scdoc.sh

index 66aa673debacd1c5a120436dd1faf2f573017323..0a4ffc38ffbc08c72fd18f58157846c7528afd89 100755 (executable)
@@ -6,4 +6,4 @@ SCDOC=$1
 INPUT=$2
 SED_PATTERN=$3
 
-cat $INPUT | sed -e $SED_PATTERN | $SCDOC
+sed -e $SED_PATTERN $INPUT | $SCDOC