Also rm /-f/ TAGS (because there might not be one), and allow symlinks
to .scm, .sld or .pkg files.
set -e
-EXCLUDED_DIRS=(etc relnotes tools)
+EXCLUDED_DIRS=(etc relnotes tools autom4te.cache lib)
function excluded_dir ()
{
# Utility to make TAGS file for an MIT/GNU Scheme build directory.
# The working directory must be the build directory.
-rm TAGS
-find * -maxdepth 0 -type f \( -name \*.scm -o -name \*.sld -o -name \*.pkg \) \
+rm -f TAGS
+find * -maxdepth 0 \( -name \*.scm -o -name \*.sld -o -name \*.pkg \) \
-print0 | xargs -0 etags --append --language=scheme