GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PORTCLIPPY(1) FreeBSD General Commands Manual PORTCLIPPY(1)

portclippy
lint FreeBSD Ports Collection Makefiles

portclippy [--strict] [Makefile]

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 measure 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:

For unknown variables do not check if they are referenced elsewhere in the Makefile and always report them. Without this option referenced but otherwise unknown variables will be ignored.

The following environment variables affect the execution of portclippy:
If defined portclippy will output text with ANSI colors even when stdout is not a tty or NO_COLOR is set.
If defined colors will be disabled.

portclippy will exit with 0 if it could not find a problem, and >0 if there are issues.

$ 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 +).

portfmt(1), portlint(1)

Tobias Kortkamp <tobik@FreeBSD.org>
June 28, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.