mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
===== This is a set of three simple tools written in sh(1) for generating single patches for use in Ports. This set is ideal for creating a new patch when it is inconvenient or undesirable to use the "make makepatch" utility. The first tool is "dupe" which is a quick copy utility. The second tool is "genpatch" which creates patches in the standards diff format and using the standard file name conventions. The last tool is "portfix" which runs "dupe", an editor of choice, and "genpatch" serially as a macro as a convenient and quick way to create port patches. Please see the dupe, genpatch, and portfix man pages for details.
30 lines
741 B
Groff
30 lines
741 B
Groff
.Dd May 17, 2015
|
|
.Dt DUPE 1
|
|
.Os
|
|
.Sh NAME
|
|
.Nm dupe
|
|
.Nd duplicate a file quickly
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Ar original
|
|
.Sh DESCRIPTION
|
|
This utility is always called by
|
|
.Xr portfix 1 ,
|
|
but sometimes it is useful in its own right.
|
|
|
|
.Nm
|
|
takes exactly one argument, a path to a file. It will duplicate the
|
|
.Op original
|
|
file to "<original>.orig" unless there is already an existing file with
|
|
this exact name. In that case, the target file name will be "<original>.intermediate"
|
|
and any existing file of that name will be unconditionally overwritten.
|
|
.Pp
|
|
.Sh ERRORS
|
|
.Nm
|
|
will abort if zero or more than one argument is given, or if
|
|
.Op original
|
|
is not a path to a valid regular file.
|
|
.Pp
|
|
.Sh SEE ALSO
|
|
.Xr genpatch 1 ,
|
|
.Xr portfix 1
|