Commit Graph

54 Commits

Author SHA1 Message Date
Karel Zak 5ae7ae8adb tools: add missing checkcompletion.sh
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-17 14:34:29 +01:00
Ruediger Meier 51658498c4 build-sys: portable usage of find command
- use dot instead of skipping search-path
 - avoid -perm /a+x
 - avoid -path

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-02-18 12:53:47 +01:00
Sami Kerola 6e93ae8414 tools: stop checkmans.sh validating libtool builds
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>
2015-08-07 21:34:42 +01:00
Karel Zak d43ec106e4 tools: add hexdump badconv() to noreturn smatch list
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-08-05 13:18:40 +02:00
Karel Zak 06df240c92 tools: add err_oom() to smatch no_return_funcs
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-08-05 12:41:17 +02:00
Karel Zak 9465221848 tools: add libfdisk docs to kernel.org release generator
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19 13:43:42 +01:00
J William Piggott b8239769f9 tools: checkmans.sh add stats
Add test results statistics.
Fix-up 'KNOWN_REPEATS'.
Version bump.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
2015-01-13 11:43:46 -05:00
J William Piggott 7d2ba7ad23 tools: checkmans.sh clean up 'let'
Clean up 'let' issues and loop iteration.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
2015-01-13 11:43:45 -05:00
J William Piggott 34317b9292 tools: checkman.sh portability lexgrog
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>
2015-01-13 11:43:45 -05:00
J William Piggott d1fd99e8e0 tools: checkman.sh portability
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>
2015-01-13 11:43:45 -05:00
Karel Zak ae2f2f5617 build-sys: add libsmartcols to ko-release-gen script
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 15:42:09 +02:00
Karel Zak b56dd06df6 tests: update build tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 12:46:04 +02:00
Karel Zak fd0e5ae46e build-sys: add non-libsmartcols.conf
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-18 12:44:37 +02:00
Karel Zak f080cc99c8 build-sys: add disable-all.conf to config-gen
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-27 11:37:18 +02:00
Sami Kerola 22c3c4f936 tools: make config-gen to require build target argument
When argument is not supplied help user by telling what arguments can be
used.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-03-07 11:45:54 +01:00
Karel Zak 65acdc8734 build-sys: remove deprecated-mount/
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-05 13:19:19 +01:00
Sami Kerola 052a6cf285 tools: add usage information to checkconfig.sh
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-02-17 14:04:35 +01:00
Karel Zak 413875b649 build-sys: add --with-smack to config-gen.d
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-12 15:48:42 +01:00
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