summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: fix --disable-all-programs --enable-schedutilsKarel Zak2017-02-201-0/+3
| | | | | | | | | | | | | * add UL_ENABLE_ALIAS(NAME, MASTERNAME) to initialize $enable_<name> according to MASTERNAME. Note that we have to use $build_<mastername>, the $enable_<mastername> is just AC_ARG_ENABLE() stuff only. The $build_ is evaluated and modified by our UL_...() functions. * add enable-schedutils.conf to have build-system regression test for this use-case Addresses: https://github.com/karelzak/util-linux/issues/415 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add non-widechar.confKarel Zak2017-02-161-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use sed to substituteKarel Zak2016-11-291-1/+1
| | | | | | | Travis CI: tools/git-version-gen: 116: tools/git-version-gen: Bad substitution Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix "remove the g in git describe"Ruediger Meier2016-11-291-8/+8
| | | | | | | | | | | | | | | | | | | | | | | The "g" was not always removed and "-rc*" follow-ups were handled incorrectly. So now after last commits we have these versions: git describe -> blkid -V -------------------------------------------------------------- v2.29-rc4 -> 2.29-rc4 (libblkid 2.29.0) v2.29-rc4-3-g4c8928d -> 2.29-rc4-3-4c89 (libblkid 2.29.0) v2.29 -> 2.29 (libblkid 2.29.0) v2.29-78-g4c8928d -> 2.29.78-4c89 (libblkid 2.29.78) v2.29.1 -> 2.29.1 (libblkid 2.29.1) v2.29.1-4-g4c8928d -> 2.29.1.4-4c89 (libblkid 2.29.1) v2.29.1-rc2 -> 2.29.1-rc2 (libblkid 2.29.1) v2.29.1-rc2-3-g4c8928d -> 2.29.1-rc2-3-4c89 (libblkid 2.29.1) Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: remove old git fallback from git-version-genRuediger Meier2016-11-291-21/+0Star
| | | | | | | Just make the script more readable. Nobody is using 10 years old git. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tools: make ko-release-gen usable with gpg2Karel Zak2016-10-011-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add tools/Makemodule.amKarel Zak2016-05-251-0/+9
| | | | | | | | We have "make" targets which depends on tools/check*.sh scripts. It's ugly to exclude these scripts from the release tar balls (as generated by "make distcheck"). Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add script to load .po from translationproject.orgKarel Zak2016-05-251-0/+58
| | | | | | I use it for years, let's keep it in the repository. Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add missing checkcompletion.shKarel Zak2016-03-171-0/+45
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: portable usage of find commandRuediger Meier2016-02-181-1/+1
| | | | | | | | - use dot instead of skipping search-path - avoid -perm /a+x - avoid -path Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tools: stop checkmans.sh validating libtool buildsSami Kerola2015-08-071-1/+1
| | | | | | | | The checkmans.sh tried to validate shared libraries, such as ./.libs/libsmartcols.so.1, causing the check output to a have lot of pointless garbage. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: add hexdump badconv() to noreturn smatch listKarel Zak2015-08-051-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add err_oom() to smatch no_return_funcsKarel Zak2015-08-051-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add libfdisk docs to kernel.org release generatorKarel Zak2015-02-191-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: checkmans.sh add statsJ William Piggott2015-01-131-11/+22
| | | | | | | | Add test results statistics. Fix-up 'KNOWN_REPEATS'. Version bump. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* tools: checkmans.sh clean up 'let'J William Piggott2015-01-131-10/+4Star
| | | | | | Clean up 'let' issues and loop iteration. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* tools: checkman.sh portability lexgrogJ William Piggott2015-01-131-5/+21
| | | | | | | | | checkman.sh depends upon the man-db package: Add using grog when lexgrog not installed. /dev/null some troff noise. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* tools: checkman.sh portabilityJ William Piggott2015-01-131-14/+12Star
| | | | | | | | | | | | | checkman.sh fails if 'git' or 'lib' are anywhere in the tested file's path: Change to using relative paths. Improve the 'find' command call. checkman.sh depends upon the man-db package: Remove all instants of the man command and use troff directly to improve portability. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* build-sys: add libsmartcols to ko-release-gen scriptKarel Zak2014-06-181-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update build testsKarel Zak2014-06-181-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add non-libsmartcols.confKarel Zak2014-06-181-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add disable-all.conf to config-genKarel Zak2014-05-272-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: make config-gen to require build target argumentSami Kerola2014-03-071-0/+9
| | | | | | | When argument is not supplied help user by telling what arguments can be used. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: remove deprecated-mount/Karel Zak2014-03-051-3/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add usage information to checkconfig.shSami Kerola2014-02-171-0/+11
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: add --with-smack to config-gen.dKarel Zak2013-11-121-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: generate autotools files if missingSami Kerola2013-09-101-0/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: make checkmans.sh to find missing manualsSami Kerola2013-04-091-4/+40
| | | | | | | | Finding missing manuals is loosely based on ideas in man-page-day-1.sh, wrote by Peter Schiffer. CC: Peter Schiffer <pschiffe@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: add checks to manual page test scriptSami Kerola2013-04-091-24/+74
| | | | | | | | | | | | | | | This change includes - better way to detect manual page inclusion - man -k header test, which uses lexgrog - repeated word detection - static declaration to known repeated words Most of the changes are based on man-page-day-1.sh, that is in use at RedHat Quality Assurance, and wrote by Peter Schiffer. CC: Peter Schiffer <pschiffe@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: add config-gen.d stuff for chsh-chfnKarel Zak2013-02-133-0/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add devel-non-docs compile profileKarel Zak2012-11-301-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ddate: remove from util-linuxSami Kerola2012-10-151-1/+1
| | | | | | | | | | | See RedHat bug for reasons why the ddate is cleaned up. The reference is where to get the command in future. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=823156 References: https://github.com/bo0ts/ddate Acked-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove static from config-gen.d/{devel,all}.confKarel Zak2012-09-112-2/+0Star
| | | | | | | It's impossible to compile static when gcc/ld is forced to use GNU_RELRO and BIND_NOW for suid binaries (e.g. mount). Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: cleanup config-gen.dKarel Zak2012-06-265-11/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert mount/ to module, rename to mount-deprecated/Karel Zak2012-06-261-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add small and stupid script to check HAVE_DECL_Karel Zak2012-06-131-0/+21
| | | | | | use 'make checkdecl' to run the script Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add checkmans.shSami Kerola2012-06-021-0/+75
| | | | | | A script to find whether all manuals has proper groff syntax. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: ko-release: make scripts bourne sh compliant [checkbashisms]Sami Kerola2012-03-302-5/+5
| | | | | | | | | | | | | | | | | | | | $ checkbashisms ko-release-gen possible bashism in ko-release-gen line 31 ('function' is useless): function die { possible bashism in ko-release-gen line 36 ('function' is useless): function add_file { possible bashism in ko-release-gen line 68 ('function' is useless): function add_html_dir { possible bashism in ko-release-gen line 72 (brace expansion): for fl in $(ls $src/*.{html,css,png}); do $ checkbashisms ko-release-push possible bashism in ko-release-push line 29 ('function' is useless): function die { possible bashism in ko-release-push line 34 ('function' is useless): function push_file { Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: config-gen: make scripts bourne sh compliant [checkbashisms]Sami Kerola2012-03-302-3/+4
| | | | | | | | | | | $ checkbashisms config-gen script config-gen does not appear to be a /bin/sh script possible bashism in config-gen line 27 (export foo=bar should be foo=bar; export foo): export CFLAGS="$CFLAGS" $ checkbashisms config-gen-functions.sh possible bashism in config-gen-functions.sh line 14 ('function' is useless): Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: checkconfig.sh: make scripts bourne sh compliant [checkbashisms]Sami Kerola2012-03-301-3/+3
| | | | | | | | | | script checkconfig.sh does not appear to be a /bin/sh script possible bashism in checkconfig.sh line 14 ('function' is useless): function die() { possible bashism in checkconfig.sh line 27 ('((' should be '$(('): while (( "$#" )); do Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: improve ko-release-* scriptsKarel Zak2012-03-302-3/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* checkxalloc: nudge regex, fix newfound instancesDave Reisner2012-03-201-1/+1
| | | | | | | | | | | | | | | | Using the -w flag with grep actually fought against us here, and hid some instances where xalloc functions weren't used. Discard it in favor of an explicit word boundary as a prefix to the function name, and extend our requirements on the trailing side of the pattern. This also fixes the few new instances that were overlooked because of the regex's deficiency. [kzak@redhat.com: - fix also newfound in findmnt - remove unnecessary checks after xallocs] Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* tools: add asprintf to checkxalloc scriptSami Kerola2012-03-181-1/+1
| | | | | Reported-By: Dave Reisner <d@falconindy.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tools: use gpg-aggent in ko-release-genKarel Zak2012-02-071-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: improve ko-release-* scriptsKarel Zak2012-01-192-4/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add ko-release-push scriptKarel Zak2012-01-191-0/+62
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add ko-release-gen scriptKarel Zak2012-01-191-0/+76
| | | | | | | | The script creates directory kernel.org/v<version>/, copy .xz tarball, changelog, release notes and docs to the directory and sign all files by gpg. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add sleepexit from login.c to smatch non-return functionsKarel Zak2012-01-171-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --enable-new-mountKarel Zak2012-01-111-0/+8
| | | | | | | | | | | | | | | | | Now we have three versions of the mount(8) utility * old mount(8) --enable-mount [default] * old mount(8) linked with libmount This is this is necessary for systems without mtab file. --enable-libmount-mount - new mount(8) This is completely new pure-libmount based mount(8). --enable-new-mount Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add checkxalloc to toplevel MakefileKarel Zak2012-01-041-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>