|
NAMEaede‐policy - check change set is ready for aedeSYNOPSISaede‐policy [ option... ][ policy... ]aede‐policy -Help aede‐policy -VERSion aede‐policy -List DESCRIPTIONThe aede‐policy command is used to verify that a change set is ready to end development. This is intended to be used by the develop_end_policy_command field of the project configuration file.develop_end_policy_command =
"aede‐policy -p $project -c $change all";
If any of the policies should fail, the aede‐policy command will
fail with an exit status of 1. This, in turn, will cause the aede(1)
command to leave the change in the being developed state.
Note that the aede(1) command sets the appropriate environment variables, so the -Project and -Change options are rarely necessary. If no policies appear on the command line, the aede‐policy project specific attribute will be checked. If it exists, it contains a list of space separated policy names. The aede‐policy(1) command expects to be invoked on changes in the being_developed state. If invoked for a change in the being_integrated state (common if invoked as part of the build) it will silently do nothing. All other change states will result in a fatal error message. POLICIESThere are a range of policies that can be selected.
This policy checks for C comments in C++ files, or C++
comments in C files. The forms of the comments give sublimial hints to the
reader as to what language is being read. Mismatched comments make the code
subtly harder to read and thus harder to maintain.
This policy checks that each file in the change set
contains a copyright notice of the form
Copyright (C) year something
where year is the current year (you can have a range of years, too).
Binary files are ignored. The something part is either the project
specific copyright‐owner attribute, or the executing users full
name.
This policy checks that hypen in roff sources (such as
man(1) pages) that contain unescaped minus or hyphen characters. This
is one of the more annoying warnings produced by lintian(1) when
building Debian packages.
This policy checks that files have no tabs characters in
them. This is useful when a team of developers all use different editors and
different tab stops. By only using spaces, the code is presented to all
developers the same way.
This policy checks the version‐info rules for
shared libraries, as laid out by the libtool(1) manual, and required by
the Debian Policy Manual. This is done by examining the actual shared
libraries, the one being built, and the one in the ancestor baseline
(i.e. the one to be replaced) to confirm that the version‐info
strings conform. By examining the actual shared libraries, an objective view
of what has been added, modified and removed can be obtained.
The shared library to examine is obtained from a project_specific attribute:
This policy requires nm(1)'s --dynamic option to work correctly on the .so file (it is part of the GNU binutils package).
This policy checks that each file in the change set
contains contains a vim(1) mode line. Binary files are ignored.
If no policy is specified, only the description policy will be checked. OPTIONSThe following options are understood:
See also aegis(1) for options common to all aegis commands. All options may be abbreviated; the abbreviation is documented as the upper case letters, all lower case letters and underscores (_) are optional. You must use consecutive sequences of optional letters. All options are case insensitive, you may type them in upper case or lower case or a combination of both, case is not important. For example: the arguments “-project”, “-PROJ” and “-p” are all interpreted to mean the -Project option. The argument “-prj” will not be understood, because consecutive optional characters were not supplied. Options and other command line arguments may be mixed arbitrarily
on the command line, after the function selectors.
The GNU long option names are understood. Since all option names for aede‐policy are long, this means ignoring the extra leading '-'. The “--option=value” convention is also understood. EXIT STATUSThe aede‐policy command will exit with a status of 1 on any error. The aede‐policy command will only exit with a status of 0 if there are no errors.ENVIRONMENT VARIABLESSee aegis(1) for a list of environment variables which may affect this command. See aepconf(5) for the project configuration file's project_specific field for how to set environment variables for all commands executed by Aegis.SEE ALSO
COPYRIGHTaede‐policy version 4.25.D510Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Peter Miller The aede‐policy program comes with ABSOLUTELY NO WARRANTY;
for details use the 'aede‐policy -VERSion License' command.
This is free software and you are welcome to redistribute it under certain
conditions; for details use the 'aede‐policy -VERSion License'
command.
AUTHOR
Visit the GSP FreeBSD Man Page Interface. |