summaryrefslogtreecommitdiffstats
path: root/share (follow)
Commit message (Collapse)AuthorAgeLines
* share/mk/: Skip expected failuresAlejandro Colomar19 hours-0/+2
| | | | | | | The SEE ALSO section of prctl(2) is problematic. MR will fix that; for now, let's skip the errors. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* man2const/, share/mk/: 2const: New sub-chapterAlejandro Colomar3 days-0/+1
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: distcheck: Run 'check' after 'build'Alejandro Colomar2024-05-06-2/+5
| | | | | | | | | | | In this project, it doesn't matter, but in some cases, it's useful that check doesn't imply build, such as in liba2i.git. Cherry-picking this change reduces differences in build systems. Signed-off-by: Alejandro Colomar <alx@kernel.org> Cherry-picked-from: liba2i.git 7246995b3464 ("share/mk/: distcheck: 'check' must be run after 'build'") Link: <https://git.kernel.org/pub/scm/libs/liba2i/liba2i.git/> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: $LD: Fix definition to include $CPPFLAGSAlejandro Colomar2024-05-05-1/+2
| | | | | | | Signed-off-by: Alejandro Colomar <alx@kernel.org> Cherry-picked-from: liba2i.git ecc5ea650c45 ("share/mk/: $LD: Fix definition to include $CPPFLAGS") Link: <https://git.kernel.org/pub/scm/libs/liba2i/liba2i.git/> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: lint-c-iwyu: Add exceptionAlejandro Colomar2024-05-02-0/+1
| | | | | Link: <https://github.com/include-what-you-use/include-what-you-use/pull/1533> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: $CPPCHECKFLAGS: Add --check-level=exhaustiveAlejandro Colomar2024-05-02-0/+1
| | | | | | | | This avoids warnings of the form: ...: information: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. [normalCheckLevelMaxBranches] Signed-off-by: Alejandro Colomar <alx@kernel.org>
* man/, share/mk/: Move man*/ to man/Alejandro Colomar2024-05-02-3/+3
| | | | | | | | | | | | | | | | | | | | This is a scripted change: $ mkdir man/; $ mv man* man/; $ ln -st . man/man*; $ find share/mk/ -type f \ | xargs grep -l '^MANDIR *:=' \ | xargs sed -i '/^MANDIR *:=/s,$,/man,'; $ find share/mk/dist/ -type f \ | xargs grep -l man \ | xargs sed -i 's,man%,man/%,g'; Link: <https://lore.kernel.org/linux-man/YxcV4h+Xn7cd6+q2@pevik/T/> Cc: Petr Vorel <pvorel@suse.cz> Cc: Jakub Wilk <jwilk@jwilk.net> Cc: Stefan Puiu <stefan.puiu@gmail.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-html: Don't build mbind.2 and set_mempolicy.2Alejandro Colomar2024-04-26-0/+2
| | | | | | They have known warnings. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Fix includesAlejandro Colomar2024-04-19-3/+1
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Split makefilesAlejandro Colomar2024-04-19-41/+87
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-fonts-tinos: Build TinosR from TinosR.afmAlejandro Colomar2024-04-19-3528/+26
| | | | | | | | | | | | And use a consistent name for it: TinosR, not TINOR. This removes the last remaining huge generated file we had in the repository. Link: <https://technicallywewrite.com/2023/09/16/addfonts> Link: <https://www.schaffter.ca/mom/momdoc/appendices.html#fonts> Cc: Jan Eden <tech@eden.one> Cc: "G. Branden Robinson" <branden@debian.org> Cc: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-fonts-tinos: Build TinosR.afm from Tinos-Regular.ttfAlejandro Colomar2024-04-19-3/+37
| | | | | | | | | | | | This will allow generating the font description file from it, which will be done in the next commit. Link: <https://technicallywewrite.com/2023/09/16/addfonts> Link: <https://www.schaffter.ca/mom/momdoc/appendices.html#fonts> Cc: Jan Eden <tech@eden.one> Cc: "G. Branden Robinson" <branden@debian.org> Cc: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Remove unused variableAlejandro Colomar2024-04-18-1/+0
| | | | | Co-developed-by: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-fonts: Use $FONTSDIR/devpdf/, and add the download fileAlejandro Colomar2024-04-17-5/+32
| | | | | | | See gropdf(1). Reported-by: Deri <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Fix chapter bookmarksAlejandro Colomar2024-04-16-1/+2
| | | | | | | | So that they can be folded. Suggested-by: Deri James <deri@chuzzlewit.myzen.co.uk> Cc: "G. Branden Robinson" <branden@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Add support for mdoc(7) pages, with -mandocAlejandro Colomar2024-04-16-1/+1
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Use -rC1, to have strictly increasing page numbersAlejandro Colomar2024-04-16-1/+1
| | | | | | Suggested-by: "G. Branden Robinson" <branden@debian.org> Suggested-by: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Read files before 'if'Alejandro Colomar2024-04-16-14/+21
| | | | | | | 'if' turns off set -e. We want to read files before 'if', so that if they don't exist, the shell will error out. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: install-man: Don't pipe to install(1)Alejandro Colomar2024-04-16-3/+3
| | | | | | | | | | | | | | | | | | | install(1) doesn't work well in Darwin. It seems to be unable to handle </dev/stdin>. The problem seems to be that Darwin's stdin misbehaves. I've only workarounded the install target, and not the dist target, since it's unlikely that one would run it in such a broken system. But since installing the pages is a common operation that everybody needs, let's work around it here. Fixes: 30c38a8bf8ae ("*.mk: Pipe to install(1)") Link: <https://github.com/NixOS/nixpkgs/pull/300797> Closes: <https://bugzilla.kernel.org/show_bug.cgi?id=218730> Reported-by: Sergei Trofimovich <slyich@gmail.com> Reported-by: Mario Rodas <https://github.com/marsam> Cc: Eli Schwartz <eschwartz93@gmail.com> Cc: Pádraig Brady <P@draigBrady.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf-book: Use the system's man(7) macrosAlejandro Colomar2024-04-16-1613/+2
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Remove support for installing compressed pagesAlejandro Colomar2024-04-09-51/+4
| | | | | | | | | | | | | | | | I don't like compressed pages: they make it more difficult/slow to grep them. This was added to make it easier for users to install compressed pages even when installing from source, but probably nobody cares at all these days about a few KiB per page; drive space got cheap. Also, some of the algorithms were added just for benchmarking (for demonstrating that they were bad in this case), and not for real use. This reduces a use of compression tools, which seem to be dangerous these days. Link: <https://tukaani.org/xz-backdoor/> Link: <https://cmpct.info/~sam/blog/posts/automatic-manpage-compression/> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build: Add exceptionsAlejandro Colomar2024-04-08-0/+4
| | | | | | With the larger font size, these pages have warnings. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: $TROFFFLAGS: Use a larger font sizeAlejandro Colomar2024-04-08-1/+3
| | | | | | | | Link: <https://journals.uc.edu/index.php/vl/article/view/5765> Reported-by: Paul Eggert <eggert@cs.ucla.edu> Suggested-by: "G. Branden Robinson" <branden@debian.org> Cc: "Thomas E. Dickey" dickey@his.com Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Useful Use of CatAlejandro Colomar2024-03-29-5/+2
| | | | | | Simplify a pipeline, by using cat(1) to actually catenate stuff. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Reorganize files for generating the PDF bookAlejandro Colomar2024-03-26-6/+1904
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Generate the fonts during the buildAlejandro Colomar2024-03-26-3/+3607
| | | | | Suggested-by: "G. Branden Robinson" <branden@debian.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: $CFLAGS: -Wno-reserved-identifier, -Wno-unused-macrosAlejandro Colomar2024-03-26-0/+2
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: lint-c-iwyu: Add exceptionsAlejandro Colomar2024-03-26-0/+2
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: lint-c: Lint headers from EXAMPLESAlejandro Colomar2024-03-26-4/+4
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Sync with liba2i's build systemAlejandro Colomar2024-03-26-303/+327
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-pdf*, install-pdf*: Rename targets for consistencyAlejandro Colomar2024-03-24-60/+88
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/, scripts/LinuxManBook/build.sh: Embed script in the makefilesAlejandro Colomar2024-03-24-10/+12
| | | | | | | This is done for simplifying, and as a side effect, it also allows much more control on the script (e.g., TROFFFLAGS). Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: [un]install-pdf: Add target to install the PDF bookAlejandro Colomar2024-03-24-6/+40
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: $EXTRAVERSION: Add variable to append to the versionAlejandro Colomar2024-03-24-1/+2
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Derive $DISTNAME from $DISTVERSIONAlejandro Colomar2024-03-24-8/+10
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Reorganize build systemAlejandro Colomar2024-03-24-106/+134
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: dist: Don't stamp the version on the manual pagesAlejandro Colomar2024-03-23-4/+1
| | | | | | | | | This will allow downstream packages to set their own version, just by setting $DISTVERSION. It will be stamped at `make install` time. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: $MANPAGEDATECMD: Use a variable for setting the date of manual pagesAlejandro Colomar2024-03-23-2/+5
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-*: Specify manual pages' version and dateAlejandro Colomar2024-03-23-48/+27
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Fix includesAlejandro Colomar2024-03-23-6/+7
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-man: Split ruleAlejandro Colomar2024-03-22-5/+82
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Use more robust regexAlejandro Colomar2024-03-22-4/+4
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: build-book, build-man, install-man: Specify version and dateAlejandro Colomar2024-03-21-7/+41
| | | | | | | | | | | | | | Each page has its own date. Add new 'build-man' target, which stamps the date and version in the pages (in $builddir, not the source ones). Build-system internal stuff: $CURDIR will be used for the build system, while $srcdir will be used for the project root of the repository. This helps use this build system in other projects. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Reorganize dependenciesAlejandro Colomar2024-03-20-276/+562
| | | | | | Use one directory per each (Debian) package, and one file per command. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/lint, share/mk/: Move *.grep filesAlejandro Colomar2024-03-19-5/+5
| | | | | | They're part of the build system, so put them under <share/mk/>. Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Split long lineAlejandro Colomar2024-03-19-1/+7
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Rename variablesAlejandro Colomar2024-03-19-12/+13
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: We don't use man2html(1) any moreAlejandro Colomar2024-03-19-15/+0
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: $htmlext: Remove unused variableAlejandro Colomar2024-03-19-3/+0
| | | | Signed-off-by: Alejandro Colomar <alx@kernel.org>
* share/mk/: Print SED rather than CPAlejandro Colomar2024-03-19-1/+1
| | | | | | That's what we use. Signed-off-by: Alejandro Colomar <alx@kernel.org>