X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=clean.sh;h=6a6d5bab05e1a517c15bc49d3b4f8143cde42389;hb=04d819bb1a2e64de4e997203b9516229bb73c686;hp=540f8f966c07cbb9fcf0e72e130504d4d9f194b0;hpb=eb5265ab22a2b1cae18bbdf43c871dba9b5927ea;p=sbcl.git diff --git a/clean.sh b/clean.sh index 540f8f9..6a6d5ba 100755 --- a/clean.sh +++ b/clean.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -e # Remove everything in directories which are only used for output. # In most cases, we can remove the directories, too. @@ -13,16 +14,9 @@ # this script (including "gmake clean" in the src/runtime directory) # several times in a row without failure.. so we leave the output/ # directory in place.) -rm -rf obj/* output/* src/runtime/genesis/ doc/user-manual \ - doc/user-manual.junk doc/DBTOHTML_OUTPUT_DIR* -# (The doc/user-manual.junk and doc/DBTOHTML_OUTPUT_DIR* directories -# are created by the Cygnus db2html script when it formats the the -# user manual, and since this db2html script is the one which is -# currently used to format the manual for the standard binary -# distribution, we automatically clean up after it here in the -# standard clean.sh file.) +rm -rf obj/* output/* src/runtime/genesis/ -# Ensure we know GNUMAKE +# Ensure that we know GNUMAKE. . ./find-gnumake.sh find_gnumake @@ -38,6 +32,7 @@ for d in tools-for-build; do $GNUMAKE -I ../src/runtime -s clean cd $original_pwd > /dev/null done +( cd ./doc ; sh ./clean.sh ) # Within all directories, remove things which don't look like source # files. Some explanations: @@ -45,13 +40,11 @@ done # are never in the sources, so must've been created # sbcl # the runtime environment, created by compiling C code -# sbcl.h +# sbcl.h # information about Lisp code needed to build the runtime environment, # created by running GENESIS # Config, target # architecture-dependent or OS-dependent symlinks -# *.htm, *.html -# probably machine-generated translation of DocBook (*.sgml) files # core # probably a Unix core dump -- not part of the sources anyway # *.o, *.so, *.lib, *.nm, a.out @@ -66,7 +59,8 @@ done # .#*, *.orig, .*.orig, *.rej # rubbish left behind by CVS updates # *.htm, *.html -# The system doc sources are SGML, any HTML is +# The system doc sources are mostly texinfo, plus various odds +# and ends like docstrings embedded in .lisp sources; any HTML is # automatically-generated output. # depend # made by "make depend" (or "gmake depend" or some such thing) @@ -79,36 +73,34 @@ done # test-passed # generated by automatic directory-test-thyself procedure find . \( \ - -type l -o \ - -name '*~' -o \ - -name '#*#' -o \ - -name '.#*' -o \ - -name '*.orig' -o \ - -name '.*.orig' -o \ + -type l -o \ + -name '*~' -o \ + -name '#*#' -o \ + -name '.#*' -o \ + -name '*.orig' -o \ + -name '.*.orig' -o \ -name '*.rej' -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 '*.lisp-temp' -o \ - -name '*.o' -o \ - -name '*.so' -o \ - -name 'a.out' -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 + -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 '*.lisp-temp' -o \ + -name '*.o' -o \ + -name '*.so' -o \ + -name 'a.out' -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