No description
  • Shell 56.3%
  • C 27%
  • Roff 15.5%
  • Noir 0.9%
  • Makefile 0.3%
Find a file
Alan Somers 28bb3ae7de Compatibility with "git diff" when deleting files
When a git revision deletes a file, `git diff --no-prefix` will generate a
fragment like this:

```
diff --git contrib/tzdata/pacificnew contrib/tzdata/pacificnew
deleted file mode 100644
index 8403219f6236..000000000000
--- contrib/tzdata/pacificnew
+++ /dev/null
```

The patch command will correctly apply such a patch. However, the logic
in applypatches that tries to delete patch's resulting backup files will
attempt to delete both /dev/null.orig and /dev/null. Deleting the latter
has obviously bad consequences.

To fix this bug, simply delete all of that logic, and instruct patch not
to generate backup files in the first place.  Similarly, use the patch
command to delete empty files, rather than doing it with shell script.

Fixes #7
Sponsored by:	Axcient
2022-11-07 08:46:24 +08:00
patches Add needed patch for 12.2-BETA1 to prevent spurious changes through 2020-09-12 15:18:52 +00:00
scripts Compatibility with "git diff" when deleting files 2022-11-07 08:46:24 +08:00
src Add $FreeBSD$. 2016-01-07 20:15:05 +00:00
tools Add FreeBSD Update build and mirroring code (formerly in the now-defunct 2013-03-05 00:52:14 +00:00
build-upgrade-patches.sh Change job handling to use the same construct I moved to later. 2020-10-09 20:30:27 +00:00
README Add FreeBSD Update build and mirroring code (formerly in the now-defunct 2013-03-05 00:52:14 +00:00
USAGE Add FreeBSD Update build and mirroring code (formerly in the now-defunct 2013-03-05 00:52:14 +00:00

$FreeBSD$

This directory contains FreeBSD Update build code.

File				Description
----				-----------
scripts/build.subr		The routines which do all the work.

scripts/build.conf		Configuration settings.

scripts/*.sh			User-accessible scripts.

scripts/X.Y-Z/bar/build.conf	Configuration for FreeBSD/bar X.Y-Z

scripts/X.Y-Z/build.subr and	These files, if present, can override
scripts/X.Y-Z/bar/build.subr	the routines defined in scripts/build.subr
				in order to provide special treatment for
				a particular release or platform.

src/findstamp.c			Utility for comparing two binaries which
				were built from the same source code and
				printing out the locations where they
				differ due to timestamps.

src/unstamp.c			Utility for erasing timestamps found by
				findstamp.c.

patches/X.Y-Z/0-*		Patches to FreeBSD X.Y-Z which we pretend
				were part of the release.  In FreeBSD 5.5
				and FreeBSD 6.0 some of these are necessary
				in order to get rid of some problematic
				timestamps.

patches/X.Y-Z/W-*		Patches to FreeBSD X.Y-Z.  These are applied
				in order of increasing W (assuming it is an
				integer), so a naming convention of setting
				W equal to the FreeBSD patch level (e.g., 9
				for FreeBSD 6.0-RELEASE-p9) is strongly
				recommended.