Commit | Line | Data |
---|---|---|
15598f42 JK |
1 | # .Sanitize for deja-gnu. |
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 | |
14 | # done in this directory. | |
15 | ||
16 | Do-first: | |
17 | ||
18 | # All files listed between the "Things-to-keep:" line and the | |
19 | # "Do-last:" line will be kept. All other files will be removed. | |
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 | ||
24 | Things-to-keep: | |
25 | ||
26 | Makefile.in | |
15598f42 | 27 | configure.in |
2a239372 JK |
28 | hppa.exp |
29 | hppa.mt | |
30 | hppa.s | |
15598f42 JK |
31 | |
32 | Things-to-lose: | |
98395eaf JL |
33 | sh3.exp |
34 | sh3.mt | |
35 | sh3.s | |
15598f42 JK |
36 | |
37 | # The lines between the "Do-last:" line and the end of the file | |
38 | # are executed as a /bin/sh shell script after everything else is | |
39 | # done. | |
40 | ||
41 | Do-last: | |
98395eaf JL |
42 | |
43 | sh3e_files="configure.in" | |
44 | if ( echo $* | grep keep\-sh3e > /dev/null ) ; then | |
45 | if [ -n "${verbose}" ] ; then | |
46 | echo Keeping sh3e stuff in $sh3e_files. | |
47 | fi | |
48 | else | |
49 | if [ -n "${verbose}" ]; then | |
50 | echo -n Cleaning sh3e in `pwd`: | |
51 | fi | |
52 | for f in $sh3e_files ; do | |
53 | if [ -n "${verbose}" ] ; then | |
54 | echo -n " " $f | |
55 | fi | |
56 | sed -e '/start\-sanitize\-sh3e/,/end\-sanitize\-sh3e/d' -e '/ xl /d' < $f > new | |
57 | if [ -n "${safe}" ] ; then | |
58 | mv $f .Recover | |
59 | fi | |
60 | mv new $f | |
61 | done | |
62 | fi | |
63 | ||
15598f42 | 64 | # eof |