|
NAMEportfix —
macro to execute three programs to create a ports patch
SYNOPSIS
DESCRIPTIONportfix is a wrapper. It consecutively runs:
If PORTEDITOR is defined in the environment then that program will be used to edit [original] file. If PORTEDITOR is not defined but EDITOR is defined, then the EDITOR program will be invoked. If neither variable is defined in the environment, then vi(1) will be invoked for the edit step.
If ERRORSThe script will abort if the number of arguments does not equal one, or if the one argument is not an existing regular file.If the editor is closed without making changes, no patch will be created. However, the duplicated file will exist. If the script is run again, it will detect the duplicate and create a second duplicate with the .intermediate extension. See genpatch(1) for more information. ENVIRONMENT
SEE ALSOdupe(1), genpatch(1)HISTORYThis script was inspired by pkgsrc's pkgdiff suite although it works a bit differently. It was written by John Marino <marino@freebsd.org> and used for a couple of years on DragonFly's DPorts before being formally imported into FreeBSD Ports Collection.
Visit the GSP FreeBSD Man Page Interface. |