FreeBSD Manual Pages
PORTCLIPPY(1) General Commands Manual PORTCLIPPY(1) NAME portclippy -- lint FreeBSD Ports Collection Makefiles SYNOPSIS portclippy [--strict] [Makefile] DESCRIPTION portclippy is a tool for linting FreeBSD Ports Collection Makefiles. At the moment it only checks variable order and is a companion tool for portlint(1). If the optional Makefile argument is not given, the Makefile will be read from stdin. portclippy will output a skeleton view of the port. It can be used to check if a variable is in the right position. It is heavily inspired by Chapter 15 of the Porter's Handbook and provides an objective mea- sure for it. Variables in wrong positions will be marked with -. The position they should appear in is marked with a +. Variables that start with an underscore _ will be ignored. The following options are available: --strict For unknown variables do not check if they are referenced else- where in the Makefile and always report them. Without this op- tion referenced but otherwise unknown variables will be ig- nored. ENVIRONMENT The following environment variables affect the execution of portclippy: CLICOLOR_FORCE If defined portclippy will output text with ANSI colors even when stdout is not a tty or NO_COLOR is set. NO_COLOR If defined colors will be disabled. EXIT STATUS portclippy will exit with 0 if it could not find a problem, and >0 if there are issues. EXAMPLES $ portclippy Makefile # BLOCK_PORTNAME PORTNAME DISTVERSION CATEGORIES MASTER_SITES # BLOCK_MAINTAINER MAINTAINER COMMENT # BLOCK_LICENSE LICENSE LICENSE_FILE # BLOCK_DEPENDS +RUN_DEPENDS # BLOCK_USES +USES -RUN_DEPENDS The output of portclippy is inspired by unified diff(1) output. Here RUN_DEPENDS is in the wrong position (marked with -) and should be moved to before USES (marked with +). SEE ALSO portfmt(1), portlint(1) AUTHORS Tobias Kortkamp <tobik@FreeBSD.org> FreeBSD 13.2 June 28, 2021 PORTCLIPPY(1)
NAME | SYNOPSIS | DESCRIPTION | ENVIRONMENT | EXIT STATUS | EXAMPLES | SEE ALSO | AUTHORS
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=portclippy&sektion=1&manpath=FreeBSD+14.2-RELEASE+and+Ports>