Commit Graph

36 Commits

Author SHA1 Message Date
Sami Kerola 0a2c1e8ed7 tools: generate autotools files if missing
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-09-10 12:57:31 +02:00
Sami Kerola eb7069693e tools: make checkmans.sh to find missing manuals
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>
2013-04-09 12:26:48 +02:00
Sami Kerola 12cc556bca tools: add checks to manual page test script
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>
2013-04-09 12:26:44 +02:00
Karel Zak 456857a49a build-sys: add config-gen.d stuff for chsh-chfn
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-13 13:49:05 +01:00
Karel Zak 896da7cd34 build-sys: add devel-non-docs compile profile
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-30 12:47:08 +01:00
Sami Kerola 4cf02b6510 ddate: remove from util-linux
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>
2012-10-15 16:41:49 +02:00
Karel Zak af2e97b56b build-sys: remove static from config-gen.d/{devel,all}.conf
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>
2012-09-11 10:25:55 +02:00
Karel Zak 68f6645a7e tools: cleanup config-gen.d
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak d2feb47fb1 build-sys: convert mount/ to module, rename to mount-deprecated/
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 20:48:22 +02:00
Karel Zak b5c6f48631 tools: add small and stupid script to check HAVE_DECL_
use 'make checkdecl' to run the script

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-13 11:59:29 +02:00
Sami Kerola ea6c96fb0f tools: add checkmans.sh
A script to find whether all manuals has proper groff syntax.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-06-02 20:29:07 +02:00
Sami Kerola 7e08b7d3ce tools: ko-release: make scripts bourne sh compliant [checkbashisms]
$ 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>
2012-03-30 16:48:13 +02:00
Sami Kerola 8313455161 tools: config-gen: make scripts bourne sh compliant [checkbashisms]
$ 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>
2012-03-30 16:48:13 +02:00
Sami Kerola 8b32e57f29 tools: checkconfig.sh: make scripts bourne sh compliant [checkbashisms]
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>
2012-03-30 16:48:12 +02:00
Karel Zak 916a743891 tools: improve ko-release-* scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 13:44:11 +02:00
Dave Reisner 99d618c0eb checkxalloc: nudge regex, fix newfound instances
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>
2012-03-20 09:44:40 +01:00
Sami Kerola bb9da58e80 tools: add asprintf to checkxalloc script
Reported-By: Dave Reisner <d@falconindy.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-03-18 14:28:05 +01:00
Karel Zak 0892d88d1a tools: use gpg-aggent in ko-release-gen
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-07 11:30:56 +01:00
Karel Zak abbc7b4a14 build-sys: improve ko-release-* scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-19 13:15:03 +01:00
Karel Zak 704d6ddbd0 build-sys: add ko-release-push script
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-19 10:51:48 +01:00
Karel Zak a3f225678f build-sys: add ko-release-gen script
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>
2012-01-19 10:48:16 +01:00
Karel Zak 43608256ca build-sys: add sleepexit from login.c to smatch non-return functions
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-17 17:32:32 +01:00
Karel Zak ecdba5ddfc build-sys: add --enable-new-mount
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>
2012-01-11 17:05:08 +01:00
Karel Zak d05a3e9713 build-sys: add checkxalloc to toplevel Makefile
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-04 14:25:21 +01:00
Dave Reisner e1e7be22ee tools: add new code checking script
Finds usage of strdup, malloc, calloc, and realloc when xalloc.h is
included.

http://marc.info/?l=util-linux-ng&m=132438338929925&w=2

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-01-04 13:53:08 +01:00
Karel Zak 6e7e2c57d5 build-sys: add log_err to smatch non-return functions
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-02 18:31:20 +01:00
Karel Zak 9221fb85f6 build-sys: add tools/config-gen and basic compilation scenarios
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-04 20:56:06 +01:00
Karel Zak 913f560b98 build-sys: add err and errx to smatch no_return_funcs
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-13 11:15:43 +02:00
Karel Zak 57970842cc build-sys: add smatch data
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-13 11:10:18 +02:00
Karel Zak 54e10ad15f build-sys: fix git-version-gen for -rc tags
The current version have a problem to support "v2.20-rc1" format of
the tags.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-29 16:12:05 +02:00
Sami Kerola 38c75b59e3 build-sys: use git-version-gen to distinct git and release versions
The script is copied as is from gnulib.

[kzak@redhat.com: - generate .tarball-version and .version files in
                    top level Makefile.am
                  - delete autom4te.cache in autogen.sh]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-05 16:34:00 +02:00
Karel Zak 76fe37dae1 fdisk: rename ENABLE_CMDTAGQ macro
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-26 14:24:52 +01:00
Karel Zak 043102bf19 tools: add checkconfig to top-level Makefile
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-26 13:42:16 +01:00
Karel Zak 685758e852 tools: rename codecheck-config to checkconfig.sh
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-26 12:59:41 +01:00
Karel Zak 44e293d65c tools: add checkincludes.pl (from linux kernel)
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-26 12:59:29 +01:00
Karel Zak 71be1ee4a1 tools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-06-15 10:17:51 +02:00