8ddef5528d
It wasn't documented (or likely used) and wastes time. (try_open): If EXTEN is empty, don't try it. * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c, ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c, ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls with normal function declarations. * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh. Move *.sc-sh to scripttempl/*.sc. * {emultempl,emulparams,scripttempl}/README: New files. * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files removed, replaced with generic.em. * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from h8[35]00hms.s[ch]. Change their contents to omit the "hms". * *.em (*_get_script): Return script name instead of script contents. * ldlang.c (lang_process): Change caller. * ldlex.l, ldgram.y: Recognize -m option. Check for input files after *all* options in grammar. * ldmain.c (main): Check for -m options. Add default directory for -m. * mkscript.c: File removed. * genscripts.sh: Take two more parameters, tooldirlib and libdir, to add to the default LIB_PATH. Look for input files in the new subdirectories. Create the scripts in emulations subdirectory and don't filter them through mkscript. * configure.in: Make the emulations subdirectory. * Makefile.in: Account for all of the above changes. Remove unused .SUFFIXES. Get libgcc.a path with gcc -print-libgcc-file-name instead of $(libdir)/libgcc.a. Put CFLAGS last in the compilation rules. Add -I../bfd to INCLUDES so sysdep.h is found. * ldfile.c (try_open): If opening without the extension fails, try with the extension even if -v or -V was given. had_script is imported (from ldgram.y), not exported.
117 lines
2.2 KiB
Text
117 lines
2.2 KiB
Text
# Sanitize.in for devo.
|
|
# $Id$
|
|
#
|
|
|
|
# Each directory to survive it's way into a release will need a file
|
|
# like this one called "./.Sanitize". All keyword lines must exist,
|
|
# and must exist in the order specified by this file. Each directory
|
|
# in the tree will be processed, top down, in the following order.
|
|
|
|
# Hash started lines like this one are comments and will be deleted
|
|
# before anything else is done. Blank lines will also be squashed
|
|
# out.
|
|
|
|
# The lines between the "Do-first:" line and the "Things-to-keep:"
|
|
# line are executed as a /bin/sh shell script before anything else is
|
|
# done in this
|
|
|
|
Do-first:
|
|
|
|
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
|
|
keep_these_too=""
|
|
fi
|
|
|
|
# All files listed between the "Things-to-keep:" line and the
|
|
# "Files-to-sed:" line will be kept. All other files will be removed.
|
|
# Directories listed in this section will have their own Sanitize
|
|
# called. Directories not listed will be removed in their entirety
|
|
# with rm -rf.
|
|
|
|
Things-to-keep:
|
|
|
|
ChangeLog
|
|
Makefile.in
|
|
NEWS
|
|
README
|
|
TODO
|
|
cdtest-foo.cc
|
|
cdtest-foo.h
|
|
cdtest-func.cc
|
|
cdtest-main.cc
|
|
cdtest.exp
|
|
config
|
|
config.h
|
|
configure.bat
|
|
configure.in
|
|
genscripts.sh
|
|
h8-doc.texi
|
|
ld.1
|
|
gen-doc.texi
|
|
ld.h
|
|
ld.texinfo
|
|
ldctor.c
|
|
ldctor.h
|
|
ldemul.c
|
|
ldemul.h
|
|
lderror.c
|
|
lderror.h
|
|
ldexp.c
|
|
ldexp.h
|
|
ldfile.c
|
|
ldfile.h
|
|
ldgram.y
|
|
ldindr.c
|
|
ldindr.h
|
|
ldint.texinfo
|
|
ldlang.c
|
|
ldlang.h
|
|
ldlex.h
|
|
ldlex.l
|
|
ldmain.c
|
|
ldmain.h
|
|
ldmisc.c
|
|
ldmisc.h
|
|
ldsym.c
|
|
ldsym.h
|
|
ldver.c
|
|
ldver.h
|
|
ldwarn.c
|
|
ldwarn.h
|
|
ldwrite.c
|
|
ldwrite.h
|
|
lexsup.c
|
|
mri.c
|
|
mri.h
|
|
relax.c
|
|
relax.h
|
|
|
|
Things-to-lose:
|
|
|
|
Do-last:
|
|
|
|
echo Looking for signs of \"v9\"...
|
|
|
|
# Don't try to clean directories here, as the 'mv' command will fail.
|
|
# Also, grep fails on NFS mounted directories.
|
|
if ( echo $* | grep keep\-v9 > /dev/null ) ; then
|
|
for i in * ; do
|
|
if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
|
|
echo Keeping v9 stuff in $i
|
|
fi
|
|
done
|
|
else
|
|
for i in * ; do
|
|
if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
|
|
echo Cleaning the \"v9\" out of $i...
|
|
cp $i new
|
|
sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/d' < $i > new
|
|
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
|
|
echo Caching $i in .Recover...
|
|
mv $i .Recover
|
|
fi
|
|
mv new $i
|
|
fi
|
|
done
|
|
fi
|
|
|
|
# End of file.
|