* Better long-filename handling. Reads SOM ABI compliant extended
[deliverable/binutils-gdb.git] / binutils / .Sanitize
CommitLineData
7d1257bb 1# .Sanitize for devo/binutils.
86e4d6e4 2
5fd51993 3# Each directory to survive its way into a release will need a file
86e4d6e4
RP
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
42d11afa 14# done in this directory.
86e4d6e4
RP
15
16Do-first:
17
5fd51993 18if ( echo $* | grep keep\-mpw > /dev/null ) ; then
7d1257bb 19 keep_these_too="mpw-make.in ChangeLog.mpw"
5fd51993 20else
7d1257bb
SS
21 lose_these_too="mpw-make.in ChangeLog.mpw"
22fi
23
24if ( echo $* | grep keep\-gm > /dev/null ) ; then
25 keep_these_too="mpw-xconfig.in ChangeLog.gm ${keep_these_too}"
26else
27 lose_these_too="mpw-xconfig.in ChangeLog.gm ${lose_these_too}"
5fd51993 28fi
86e4d6e4
RP
29
30# All files listed between the "Things-to-keep:" line and the
31# "Files-to-sed:" line will be kept. All other files will be removed.
32# Directories listed in this section will have their own Sanitize
33# called. Directories not listed will be removed in their entirety
34# with rm -rf.
35
36Things-to-keep:
37
38ChangeLog
39Makefile.in
9c994225 40NEWS
5a77e916 41README
86e4d6e4
RP
42TODO
43alloca.c
05b47bfb 44ar.1
5a77e916 45ar.c
c0cc6912 46arlex.l
aef3999f 47arparse.y
c0cc6912
SC
48arsup.c
49arsup.h
c83497f5 50binutils.texi
86e4d6e4 51bucomm.c
5a77e916 52bucomm.h
3ac620d4 53c++filt.1
e52e2acd
SC
54coffdump.c
55coffgrok.c
56coffgrok.h
57config
0ce51ae9 58configure.bat
86e4d6e4 59configure.in
86e4d6e4
RP
60filemode.c
61gmalloc.c
5a77e916
SC
62is-ranlib.c
63is-strip.c
5a77e916
SC
64maybe-ranlib.c
65maybe-strip.c
3883531f 66nlmconv.1
d130c9c5
ILT
67nlmconv.c
68nlmconv.h
69nlmheader.y
5a77e916 70nm.1
86e4d6e4 71nm.c
5a77e916
SC
72not-ranlib.c
73not-strip.c
3ac620d4 74objcopy.1
df14d957 75objcopy.c
5a77e916 76objdump.1
86e4d6e4 77objdump.c
5a77e916 78ranlib.1
06a97fbd 79ranlib.sh
aef3999f 80sanity.sh
5a77e916 81size.1
86e4d6e4 82size.c
e52e2acd 83srconv.c
ba7c8e29
DM
84strings.1
85strings.c
5a77e916 86strip.1
e52e2acd
SC
87sysdump.c
88sysinfo.y
89syslex.l
90sysroff.info
fdee1696 91testsuite
86e4d6e4
RP
92version.c
93
87756e15
RP
94Things-to-lose:
95
86e4d6e4 96Do-last:
d1a7f14f
ILT
97
98ppcfiles="ChangeLog nlmconv.c"
99if ( echo $* | grep keep\-powerpc\-netware > /dev/null ) ; then
100 if [ -n "${verbose}" ] ; then
101 echo Keeping PowerPC NetWare stuff in $ppcfiles.
102 fi
103else
104 if [ -n "${verbose}" ]; then
105 echo -n Removing PowerPC NetWare in `pwd`:
106 fi
107 for f in $ppcfiles ; do
108 if [ -n "${verbose}" ] ; then
109 echo -n " " $f
110 fi
111 sed '/start\-sanitize\-powerpc\-netware/,/end\-sanitize\-powerpc\-netware/d' < $f > new
112 if [ -n "${safe}" ] ; then
113 mv $f .Recover
114 fi
115 mv new $f
116 done
117fi
This page took 0.24931 seconds and 4 git commands to generate.