summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* man: add a new section for EFI variablesZbigniew Jędrzejewski-Szmek2019-02-131-0/+10
| | | | | | | We should probably refer to them from other man pages for programs which use them, since right now all refs are in systemd-boot(7). But creating the section is a good step anyway.
* man: add a new directives section for .nspawnZbigniew Jędrzejewski-Szmek2019-02-131-1/+10
| | | | | | They is quite a bit of those directives and they were in "MISCELLANEOUS" because they don't quite fit anywhere. When the OCI-compat stuff is merged, there'll be even more, so let's make a separate section for them.
* man: move all config file options to one sectionZbigniew Jędrzejewski-Szmek2019-02-131-3/+3
| | | | | | We had "SYSTEM MANAGER DIRECTIVES" which was a misnomer already, because it also listed user manager stuff. Let's make this a more general section and move the items for other services there too (from "MISCELANENOUS").
* man: move os-release, machine-info, vconsole.conf vars to envvar sectionZbigniew Jędrzejewski-Szmek2019-02-131-2/+2
| | | | | Strictly speaking, those are not environment variables, but they are compatible and people think about them like this. Moving them makes them easier to find.
* tools/choose-default-locale.sh: set shebang to /bin/shJörg Thalheim2019-01-171-1/+1
| | | | | | | | The script does not use any bash features. On NixOS we have /bin/sh and /usr/bin/env for posix compatibility but not /bin/bash as it is stored in our nix store. With this change one can run the `meson configure` without patching which greatly helps, when working on upstream contributions.
* Merge pull request #11317 from filbranden/docs1Zbigniew Jędrzejewski-Szmek2019-01-031-32/+0
|\ | | | | Improvements to systemd.io generation
| * docs: generate index.md in JekyllFilipe Brandenburger2019-01-021-32/+0
| | | | | | | | | | | | | | | | | | | | This uses a {% for %} loop in Jekyll to render the page, from the "title" information in the Front Matter of the actual page files. This also makes `make-index-md` build rule unnecessary, since generation is done by the template engine itself. Tested this by running Jekyll locally.
* | Merge pull request #11230 from keszybz/version-string-altYu Watanabe2019-01-031-0/+18
|\ \ | |/ |/| Generate version string from git describe (alternative approach)
| * meson: use /bin/bash for scriptZbigniew Jędrzejewski-Szmek2018-12-211-1/+1
| | | | | | | | | | It seems -o pipefail does not work on Ubunut. /bin/sh is most likely resolved to dash.
| * meson: allow setting the version string during configurationZbigniew Jędrzejewski-Szmek2018-12-211-1/+7
| | | | | | | | | | | | This will be useful when building distro packages, because we can set the version string to the rpm/dpkg/whatever version string, and getter reports from end users.
| * meson-vcs-tag: add work-around for git bugZbigniew Jędrzejewski-Szmek2018-12-211-2/+5
| |
| * meson: generate version tag from gitZbigniew Jędrzejewski-Szmek2018-12-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ build/systemctl --version systemd 239-3555-g6178cbb5b5 +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN +PCRE2 default-hierarchy=hybrid $ git tag v240 -m 'v240' $ ninja -C build ninja: Entering directory `build' [76/76] Linking target fuzz-unit-file. $ build/systemctl --version systemd 240 +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN +PCRE2 default-hierarchy=hybrid This is very useful during development, because a precise version string is embedded in the build product and displayed during boot, so we don't have to guess answers for questions like "did I just boot the latest version or the one from before?". This change creates an overhead for "noop" builds. On my laptop, 'ninja -C build' that does nothing goes from 0.1 to 0.5 s. It would be nice to avoid this, but I think that <1 s is still acceptable. Fixes #7183. PACKAGE_VERSION is renamed to GIT_VERSION, to make it obvious that this is the more dynamically changing version string. Why save to a file? It would be easy to generate the version tag using run_command(), but we want to go through a file so that stuff gets rebuilt when this file changes. If we just defined an variable in meson, ninja wouldn't know it needs to rebuild things.
* | meson: check whether C.UTF-8 exists or not and use it if existsYu Watanabe2019-01-021-0/+12
|/ | | | If C.UTF-8 does not exist, then fallback to en_US.UTF-8 or C.
* tree-wide: drop header for emacs from python scriptsYu Watanabe2018-12-106-8/+2
|
* tools: add one more SPDX license headerYu Watanabe2018-12-101-1/+3
|
* tools: drop unused variableYu Watanabe2018-12-101-1/+0
|
* docs: work around GitHub pages weirdnessLennart Poettering2018-11-291-1/+17
| | | | Fixes: #10546
* Merge pull request #10970 from yuwata/from-name-return-negative-errnoYu Watanabe2018-11-291-0/+22
|\ | | | | util: make *_from_name() returns negative errno on error
| * tools: move generate-gperfs.py to tools/Yu Watanabe2018-11-281-0/+22
| |
* | travis: make sure that *.perf and directives.* files are in syncEvgeny Vereshchagin2018-11-281-0/+21
|/ | | | | | New features are constantly added to networkd. Apparently, not everybody knows that the "directives" files should be updated too to make the fuzzers aware of them.
* docs: tweak index.md generation and run it againLennart Poettering2018-11-161-2/+3
|
* oss-fuzz.sh: copy dictionaries along with "options" filesEvgeny Vereshchagin2018-11-061-0/+1
| | | | | We currently don't have any upstream but it doesn't mean that it should be impossible to experiment with local ones :-)
* tests: add a fuzzer for the json parser and dumperEvgeny Vereshchagin2018-10-101-0/+3
|
* meson: use same compilers to build fuzzersYu Watanabe2018-10-091-1/+3
|
* Merge pull request #10246 from keszybz/fuzz-bussLennart Poettering2018-10-021-2/+4
|\ | | | | Bus fuzzer
| * fuzz: rename "fuzz-corpus" directory to just "fuzz"Zbigniew Jędrzejewski-Szmek2018-10-021-2/+4
| | | | | | | | | | Also, all corpus subdirectories are named exactly the same as the fuzzer they are for. This makes the paths a bit longer, but easier.
* | docs: add a simple, auto-generated index.mdLennart Poettering2018-10-021-0/+15
|/ | | | This is useful for the github pages feature
* tools: use print function in Python 3 codeLucas Werkmeister2018-08-271-8/+10
| | | | | | | | | This GDB script was converted to use Python 3 along with all other Python scripts in commit b95f5528cc, but still used the Python 2 print statement syntax instead of the Python 3 print function. Fix that. We also add the Python 2 compatibility statement, just in case some GDB still uses Python 2 instead of Python 3.
* oss-fuzz.sh: just install the shared libraryEvgeny Vereshchagin2018-08-161-2/+1
| | | | | | | | The workaround is no longer necessary, because the scripts checking fuzzers have stopped going down to the subdirectories of $OUT and started to look for the string "LLVMFuzzerTestOneInput" to tell fuzzers and random binaries apart. Some more details can be found at https://github.com/google/oss-fuzz/issues/1566.
* meson: print stats in check-api-docsZbigniew Jędrzejewski-Szmek2018-08-021-0/+23
|
* Merge pull request #8876 from yuwata/meson-0.46Zbigniew Jędrzejewski-Szmek2018-07-241-1/+0
|\ | | | | meson: bump minimum required version to 0.46
| * meson: use has_link_argument() and friendsYu Watanabe2018-07-241-1/+0
| | | | | | | | | | This bumps the minimum required version of meson to 0.46, as `has_link_argument()` and friends are supported since 0.46.
* | Drop "Copyright abandonded" headerZbigniew Jędrzejewski-Szmek2018-07-241-1/+1
|/ | | | | | Add CC0 as the license. SPDX does not have a "public domain" tag, but CC0 is more or less equivalent. We should have *some* header to avoid doubts in the future.
* meson: check the existence of ninja.build for fuzzer testsYu Watanabe2018-07-231-1/+1
|
* coverity.sh: fail if uploading data to Coverity Scan is forbiddenEvegeny Vereshchagin2018-06-251-1/+1
|
* coverity.sh: use a comma to separate module namesEvegeny Vereshchagin2018-06-251-1/+1
| | | | | | | | | | | Otherwise Python bails out with ``` Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'json' is not defined ``` See https://travis-ci.org/systemd/systemd/jobs/397490437
* coverity.sh: make the script compatible with Python 3Evegeny Vereshchagin2018-06-251-2/+2
|
* coverity.sh: fix a couple indentsEvegeny Vereshchagin2018-06-251-2/+2
|
* tree-wide: drop copyright headers from frequent contributorsZbigniew Jędrzejewski-Szmek2018-06-202-4/+0
| | | | | | | | Fixes #9320. for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms' done
* Merge pull request #9301 from keszybz/man-drop-authorgroupLennart Poettering2018-06-142-18/+0
|\ | | | | man: drop unused <authorgroup> tags from man sources
| * Also drop <authorgroup> from autogenerated pagesZbigniew Jędrzejewski-Szmek2018-06-142-18/+0
| |
* | Drop my copyright headersZbigniew Jędrzejewski-Szmek2018-06-145-10/+0
|/ | | | | | | perl -i -0pe 's/\s*Copyright © .... Zbigniew Jędrzejewski.*?\n/\n/gms' man/*xml git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/(#\n)?# +Copyright © [0-9, -]+ Zbigniew Jędrzejewski.*?\n//gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s*\/\*\*\*\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*?\s*\*\*\*\/\s*/\n\n/gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*//gms'
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-147-7/+7
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-1/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-146-12/+1
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* hwdb-update: make sure it works when run from mesonLennart Poettering2018-06-131-1/+3
| | | | | let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works.
* coverity.sh: check that coverity responds with 200Evegeny Vereshchagin2018-06-071-1/+10
| | | | | | This is mostly inspired by https://github.com/pmem/pmdk/commit/7b103fd2dd54b2e5974f71fb65c81ab3713c12c5 Closes https://github.com/systemd/systemd/issues/9186.
* tools: make various scripts find the top-levle git dir automaticallyLennart Poettering2018-06-072-4/+8
|
* find-double-newline: look in headers tooLennart Poettering2018-05-221-2/+2
|
* tools: add a script for fixing up TABsLennart Poettering2018-05-221-0/+40
| | | | | This is similar to "find-double-newline.sh" but looks for TABs that should not be there.