# SEE ALSO
*depmod.d*(5), *modprobe*(8), *modules.dep*(5)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
# SEE ALSO
*depmod*(8)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
# SEE ALSO
*modprobe*(8), *rmmod*(8), *lsmod*(8), *modinfo*(8), *depmod*(8)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
# SEE ALSO
*lsmod*(8), *rmmod*(8), *insmod*(8), *modinfo*(8), *modprobe*(8), *depmod*(8)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHOR
-
-*kmod* project was started by Lucas De Marchi as a drop-in replacement to
-module-init-tools that was maintained by Jon Masters, adding a library (libkmod)
-and additional features.
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
# SEE ALSO
*insmod*(8), *modprobe*(8), *modinfo*(8), *depmod*(8)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
command : [
build_scdoc,
scdoc,
- '@INPUT@',
's|@SYSCONFDIR@|@0@|g;'.format(sysconfdir) +
's|@DISTCONFDIR@|@0@|g;'.format(distconfdir) +
's|@MODULE_DIRECTORY@|@0@|g;'.format(moduledir),
+ '@INPUT@',
],
- input : f'@man@.@section@.scd',
+ input : [f'@man@.@section@.scd', files('trailer.scd')],
output : f'@man@.@section@',
capture : true,
install : true,
# SEE ALSO
*modprobe*(8)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
# SEE ALSO
*modprobe.d*(5), *insmod*(8), *rmmod*(8), *lsmod*(8), *modinfo*(8), *depmod*(8)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
# SEE ALSO
*modprobe*(8), *modules.dep*(5)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
# SEE ALSO
*depmod*(8), *modprobe*(8)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
# SEE ALSO
*modprobe*(8), *insmod*(8), *lsmod*(8), *modinfo*(8), *depmod*(8)
-
-# BUGS
-
-Please direct any bug reports to kmod's issue tracker at
-https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
-to reproduce the problem and the expected outcome.
-
-# AUTHORS
-
-Numerous contributions have come from the linux-modules mailing list
-<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
-itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
-authors for specific parts of the project.
-
-*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
-project.
--- /dev/null
+
+# AUTHORS
+
+Numerous contributions have come from the linux-modules mailing list
+<linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git
+itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
+authors for specific parts of the project.
+
+*Lucas De Marchi* <lucas.de.marchi@gmail.com> is the current maintainer of the
+project.
+
+# BUGS
+
+Please direct any bug reports to kmod's issue tracker at
+https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
+to reproduce the problem and the expected outcome.
set -euo pipefail
SCDOC=$1
-INPUT=$2
-SED_PATTERN=$3
+shift
+SED_PATTERN=$1
+shift
+INPUT=$*
sed -e $SED_PATTERN $INPUT | $SCDOC