this is a CR mail generated by patch(1), because It's the first
time, I'm resending it by hand, and I attach the man page for the
tool at the end.
Usually you'd just patch/apply it, try it, and patch/undo it.
An alternative is to 9fs patches.lsub.org and go to
/n/patches.lsub.org/patch/<nameforthepatch> to take a look.
]
tool to update file trees. reports differences and
commands needed to make dst like src.
Useful to synchronize, without detecting conflicts.
Fmode might probably go now.
files:
/sys/man/1/up up
/sys/src/cmd/up.c up.c
removed:
new: /sys/man/1/up
new: /sys/src/cmd/up.c
---
UP(1) UP(1)
NAME
up - update a tree
SYNOPSIS
up [ -cugs ] src dst
DESCRIPTION
Up prints shell commands needed to make dst like src. Both
arguments may name files or directories and exist or not
exist.
By default, user and group ids are ignored. Flag -u makes
the user and group ids to be considered. Flag -g makes
group ids to be considered.
Flag -c makes up report changes instead of commands to
update the destination file. Each change is indicated by the
initial of added, deleted, mode-changed, and changed fol-
lowed by the file name, relative to the destination direc-
tory.
Flag -s makes the tool silent, reporting through the exit
status non-nil only if src and dst differ.
SOURCE
/sys/src/cmd/up.c
EXAMPLE
; up /rc/bin/patch /n/src/nix/rc/bin/patch
chmod 0775 /n/src/nix/rc/bin/patch/applied
fcp -x /rc/bin/patch/apply /n/src/nix/rc/bin/patch/apply
chmod 0775 /n/src/nix/rc/bin/patch/create
chmod 0775 /n/src/nix/rc/bin/patch/okay
chmod 0775 /n/src/nix/rc/bin/patch/undo
;; patch/Apply up
applying to /n/src/nix...
/dist/patch/up
merge...backup...copy...
cpfile up /n/dist/sys/man/1/up
cpfile up.c /n/dist/sys/src/cmd/up.c
done