]> Git Repo - binutils.git/blob - gdb/doc/.Sanitize
Update gdbtk keep/lose to match main GDB sanitize
[binutils.git] / gdb / doc / .Sanitize
1 # .Sanitize for gdb/doc.
2
3 # Each directory to survive its way into a release will need a file
4 # like this one called "./.Sanitize".  All keyword lines must exist,
5 # and must exist in the order specified by this file.  Each directory
6 # in the tree will be processed, top down, in the following order.
7
8 # Hash started lines like this one are comments and will be deleted
9 # before anything else is done.  Blank lines will also be squashed
10 # out.
11
12 # The lines between the "Do-first:" line and the "Things-to-keep:"
13 # line are executed as a /bin/sh shell script before anything else is
14 # done in this directory.
15
16 Do-first:
17
18 # Note that gdbgui.texinfo is actually a generic document, but right
19 # now it only describes gdbtk, so we keep/lose as a gdbtk file.
20
21 gdbtk_files="gdbgui.texinfo"
22
23 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
24         lose_these_too="${gdbtk_files} ${lose_these_too}"
25         if [ -n "${verbose}" ] ; then
26                 echo Deleting ${gdbtk_files}
27         fi
28 else
29         keep_these_too="${gdbtk_files} ${keep_these_too}"
30         if [ -n "${verbose}" ] ; then
31                 echo Keeping ${gdbtk_files}
32         fi
33 fi
34
35 # All files listed between the "Things-to-keep:" line and the
36 # "Files-to-sed:" line will be kept.  All other files will be removed.
37 # Directories listed in this section will have their own Sanitize
38 # called.  Directories not listed will be removed in their entirety
39 # with rm -rf.
40
41 # Note that we don't even keep the "config" directory, since it is
42 # not currently used (since we abolished use of M4 in the docs).
43
44 Things-to-keep:
45
46 ChangeLog
47 Makefile.in
48 a4rc.sed
49 all-cfg.texi
50 annotate.texi
51 configure.in
52 libgdb.texinfo
53 gdb.texinfo
54 gdbint.texinfo
55 h8-cfg.texi
56 lpsrc.sed
57 psrc.sed
58 refcard.tex
59 remote.texi
60 stabs.texinfo
61
62 Things-to-lose:
63
64 # Cygnus logo bitmap, huge file, no point in bundling all over the place.
65 cyglogo.eps
66 # Includes cyglogo.eps.
67 cygref.tex
68
69 # The README file for gdb testers using snapshots.
70 snapshots.readme
71
72 Do-last:
73
74 # Don't try to clean directories here, as the 'mv' command will fail.
75 # Also, grep fails on NFS mounted directories.
76 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
77         echo Catering to RMS by removing traces of \"gdbtk\"...
78         for i in * ; do
79                 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
80                         echo Removing traces of \"gdbtk\" out of $i...
81                         cp $i new
82                         sed '/start\-sanitize\-gdbtk/,/end-\sanitize\-gdbtk/d' < $i > new
83                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
84                                 echo Caching $i in .Recover...
85                                 mv $i .Recover
86                         fi
87                         mv new $i
88                 fi
89         done
90 else
91         echo Leaving \"gdbtk\" in the sources...
92         for i in * ; do
93                 if test ! -d $i && (grep sanitize-gdbtk $i > /dev/null) ; then
94                         echo Keeping \"gdbtk\" stuff in $i, but editing out sanitize lines...
95                         cp $i new
96                         sed -e '/start\-sanitize\-gdbtk/d' -e '/end\-sanitize\-gdbtk/d' < $i > new
97                         if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
98                                 echo Caching $i in .Recover...
99                                 mv $i .Recover
100                         fi
101                         mv new $i
102                 fi
103         done
104 fi
105
106 # End of file.
This page took 0.027068 seconds and 4 git commands to generate.