more hp config stuff via xpro
[deliverable/binutils-gdb.git] / .Sanitize
CommitLineData
43e36dd2 1# .Sanitize for devo.
a93b3c77
RP
2
3# Each directory to survive it's 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
43e36dd2 14# done in this directory.
a93b3c77
RP
15
16Do-first:
17
a93b3c77 18# All files listed between the "Things-to-keep:" line and the
43e36dd2 19# "Do-last:" line will be kept. All other files will be removed.
a93b3c77
RP
20# Directories listed in this section will have their own Sanitize
21# called. Directories not listed will be removed in their entirety
22# with rm -rf.
23
24Things-to-keep:
25
c9b36b5f 26.cvsignore
6227a92b 27CYGNUS
57d32184 28ChangeLog
a93b3c77 29Makefile.in
965a9f14 30README
28f760d3 31autoconf
d5eb68fa 32bfd
ebec4684 33binutils
e72c4b3a 34bison
6a2d7603 35byacc
7d283cc1 36cfg-paper.texi
5c63e7d1 37clib
a93b3c77 38config
db2de419 39config.sub
a93b3c77 40configure
e72c4b3a 41configure.bat
a93b3c77 42configure.in
38c8a27e 43configure.man
b8bb8de3 44configure.texi
cdabe523 45cvs
5781b1ba 46diff
cdabe523 47emacs
49df2308 48flex
a93b3c77 49gas
ebec4684
RP
50gcc
51gdb
f3d3d2cd 52gdbm
e72c4b3a 53gdbtest
f7f4df6a 54glob
9a14a29d 55gprof
5781b1ba 56grep
a93b3c77 57include
2dbd15d2 58ispell
ebec4684 59ld
0862386b 60libg++
e72c4b3a
RP
61libgcc
62libiberty
cdabe523 63make
d592622a 64mmalloc
e72c4b3a 65move-if-change
6ae8fff5 66newlib
57d32184 67patch
d42563da 68prms
3c8735af 69rcs
a93b3c77 70readline
e72c4b3a 71send_pr
95a3881d 72standards.texi
c9b36b5f 73test-build.mk
d239963b 74texinfo
14bed8ee 75tgas
a93b3c77 76
43e36dd2
RP
77# The lines between the "Do-last:" line and the end of the file
78# are executed as a /bin/sh shell script after everything else is
79# done.
80
a93b3c77
RP
81Do-last:
82
eebff21c
JG
83echo Looking for signs of \"v9\"...
84
85# Don't try to clean directories here, as the 'mv' command will fail.
86# Also, grep fails on NFS mounted directories.
87if ( echo $* | grep keep\-v9 > /dev/null ) ; then
88 for i in * ; do
89 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
90 echo Keeping v9 stuff in $i
91 fi
92 done
93else
94 for i in * ; do
95 if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
96 echo Cleaning the \"v9\" out of $i...
e00efef1 97 cp $i new
eebff21c
JG
98 sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
99 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
100 mv $i .Recover
101 fi
102 mv new $i
eebff21c
JG
103 fi
104 done
105fi
106
320e1b86
JG
107echo Looking for signs of \"life\"...
108
109# Don't try to clean directories here, as the 'mv' command will fail.
110# Also, grep fails on NFS mounted directories.
111if ( echo $* | grep keep\-life > /dev/null ) ; then
112 for i in * ; do
113 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
16871f33 114 echo Keeping life alive in $i
320e1b86
JG
115 fi
116 done
117else
118 for i in * ; do
119 if test ! -d $i && (grep sanitize-life $i > /dev/null) ; then
16871f33 120 echo Beating the \"life\" out of $i...
320e1b86
JG
121 cp $i new
122 sed '/start\-sanitize\-life/,/end-\sanitize\-life/d' < $i > new
123 if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
124 mv $i .Recover
125 fi
126 mv new $i
127 fi
128 done
129fi
130
e11b54be
PB
131for i in * ; do
132 if test ! -d $i && (grep sanitize $i > /dev/null) ; then
133 echo Some mentions of Sanitize are still left in $i!
134 fi
135done
57d32184
RP
136
137# eof
This page took 0.04812 seconds and 4 git commands to generate.