* i386v4-nat.c: Include sys/reg.h if present.
[deliverable/binutils-gdb.git] / DOC.Sanitize
CommitLineData
8d91aae6
RP
1
2
3 The Sanitization Process
4
5
6Usage:
7
8To sanitize a directory or subtree, foo:
9
10cd foo ; /usr/unsupported/bin/Sanitize
11
12and you should be left with source code free of any distribution
13restrictions.
14
15
16Configuration:
17
18Each directory to be kept in a release should have a .Sanitize file in
19cvs. See devo/.Sanitize for a more or less self describing template.
20
184d260b
JK
21All files should be listed in "Things-to-keep:" or "Things-to-lose:"
22(or dealt with via keep_these_too and lose_these_too, see below). If
23a file is not listed, it is removed, but a warning is printed.
8d91aae6
RP
24Directories that are kept will have Sanitize called on their own
25.Sanitize files.
26
8d91aae6
RP
27The "Do-first:" section of .Sanitize should be a shell script
28fragment. It will be sourced by the Sanitize shell script after
29verifying that the .Sanitize file looks reasonable but before taking
30any other action. The arguments to Sanitize are passed to this
31fragment so that you can take conditional action. For an example of
d12a71ca 32its use, see devo/gcc/config/.Sanitize.
8d91aae6
RP
33
34If the "Do-first:" section sets the local shell variable
35"keep_these_too", the files and/or directories listed there will be
184d260b
JK
36kept in addition to any files listed in "Things-to-keep:". If it sets
37"lose_these_too", those files and/or directories will be removed in
38addition to any files listed in "Things-to-lose:". For an example of
39its use, see devo/gcc/config/.Sanitize.
8d91aae6
RP
40
41The "Do-last:" section of .Sanitize should be a shell script fragment.
42It will be sourced by Sanitize after all other action is taken for
43this directory. This section is intended to be used to strip code out
44of source files. For an example of grep'ing out specific lines, see
45devo/include/.Sanitize. For an example of sed'ing out sections of
46code, see devo/gas/config/.Sanitize.
47
48Command line options are extremely free form. The Sanitize script
49itself only knows about keep-cvs. All arguments to Sanitize are
50passed to the "Do-first:" and "Do-last:" fragments. Feel free to add
51new options as you see fit so long as you list them here.
52
53Defined options:
54
492b9bf0 55keep-cvs avoids removing CVS directories. This option is
8d91aae6
RP
56 actually recognized and handled by the Sanitize shell
57 script.
58
d12a71ca 59keep-cygnus avoids removing Cygnus-only bits.
8d91aae6
RP
60keep-v9 avoids removing the v9 stuff.
61keep-life avoids removing the life stuff.
62keep-cri avoids removing the cray research inc changes to emacs.
d12a71ca 63keep-chill avoids removing CHILL support.
d12a71ca 64keep-gm avoids removing GM-specific stuff.
492b9bf0 65keep-inet avoids removing I*Net stuff.
d12a71ca 66
05ea9379
SS
67lose-gdbtk removes gdbtk stuff. This is really only needed for
68 FSF GDB releases.
69
8d91aae6
RP
70for-intel builds a distribution in the style that Intel likes.
71for-fsf builds a distribution in the style that the FSF likes.
72
73test instead of removing dirty files, cache them away in a
74 .Recover directory
75recover intended to undo the effects of a "Sanitize test".
This page took 0.202778 seconds and 4 git commands to generate.