X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=clean.sh;h=6088d374dfac448f8c687c9ae07c828041dbddd5;hb=6a756846fe0fe89835ec5eb68327b612c93f82c4;hp=7b5685f632c9ccae846f38c509db10f961bc7261;hpb=dfa55a883f94470267b626dae77ce7e7dfac3df6;p=sbcl.git diff --git a/clean.sh b/clean.sh index 7b5685f..6088d37 100755 --- a/clean.sh +++ b/clean.sh @@ -22,10 +22,23 @@ rm -rf obj/* output/* doc/user-manual \ # distribution, we automatically clean up after it here in the # standard clean.sh file.) -# Within other directories, remove things which don't look like source +# Ask some other directories to clean themselves up. +original_pwd=`pwd` +for d in tools-for-build; do + cd $d > /dev/null + # I hope the -s option is standard. At least GNU make and BSD make + # support it. It silences make, since otherwise the output from + # this script is just the operations done by these make's, which + # is misleading when this script does lotso other operations too. + # -- WHN + make -s clean + cd $original_pwd > /dev/null +done + +# Within all directories, remove things which don't look like source # files. Some explanations: # (symlinks) -# are never in the sources; they must've been created +# are never in the sources, so must've been created # sbcl # the runtime environment, created by compiling C code # sbcl.h @@ -36,30 +49,53 @@ rm -rf obj/* output/* doc/user-manual \ # *.htm, *.html # probably machine-generated translation of DocBook (*.sgml) files # core -# probably a core dump -- not part of the sources anyway -# *~, #*#, TAGS +# probably a Unix core dump -- not part of the sources anyway +# *.o, *.lib, *.nm +# results of C-style linking, assembling, etc. +# *.core, *.map +# looks like SBCL SAVE-LISP-AND-DIE or GENESIS output, and +# certainly not source +# *~, #*# # common names for editor temporary files +# TAGS, tags +# files created by GNU etags and ctags +# .#*, *.orig, .*.orig +# rubbish left behind by CVS updates +# *.htm, *.html +# The system doc sources are SGML, any HTML is +# automatically-generated output. +# depend +# made by "make depend" (or "gmake depend" or some such thing) +# *.lisp-obj, *.fasl, *.x86f, *.axpf, *.lbytef, *.lib +# typical extensions for fasl files (not just from SBCL, but +# from other Lisp systems which might be used as xc hosts) find . \( \ - -type l -or \ - -name '*~' -or \ - -name '#*#' -or \ - -name '?*.x86f' -or \ - -name '?*.axpf' -or \ - -name '?*.lbytef' -or \ - -name 'core' -or \ - -name '?*.core' -or \ - -name '*.map' -or \ - -name '*.nm' -or \ - -name '*.host-obj' -or \ - -name '*.lisp-obj' -or \ - -name '*.target-obj' -or \ - -name '*.lib' -or \ - -name '*.tmp' -or \ - -name '*.o' -or \ - -name 'sbcl' -or \ - -name 'sbcl.h' -or \ - -name 'depend' -or \ - -name '*.htm' -or \ - -name '*.html' -or \ - -name 'TAGS' -or \ + -type l -o \ + -name '*~' -o \ + -name '#*#' -o \ + -name '.#*' -o \ + -name '*.orig' -o \ + -name '.*.orig' -o \ + -name '?*.x86f' -o \ + -name '?*.axpf' -o \ + -name '?*.lbytef' -o \ + -name '?*.fasl' -o \ + -name 'core' -o \ + -name '?*.core' -o \ + -name '*.map' -o \ + -name '*.nm' -o \ + -name '*.host-obj' -o \ + -name '*.lisp-obj' -o \ + -name '*.target-obj' -o \ + -name '*.lib' -o \ + -name '*.tmp' -o \ + -name '*.o' -o \ + -name 'sbcl' -o \ + -name 'sbcl.h' -o \ + -name 'depend' -o \ + -name 'TAGS' -o \ + -name 'tags' -o \ + -name 'test-passed' -o \ -name 'local-target-features.lisp-expr' \) -print | xargs rm -f + +cd doc && sh ./clean.sh