X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=clean.sh;h=e09790d15cae7b6f989bc2f22ad2ec81894ce542;hb=babd45f7788c2f50c9d6193c1c7108e0a6b3a547;hp=540f8f966c07cbb9fcf0e72e130504d4d9f194b0;hpb=eb5265ab22a2b1cae18bbdf43c871dba9b5927ea;p=sbcl.git diff --git a/clean.sh b/clean.sh index 540f8f9..e09790d 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: @@ -50,8 +45,6 @@ done # 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) @@ -110,5 +104,3 @@ find . \( \ -name 'tags' -o \ -name 'test-passed' -o \ -name 'local-target-features.lisp-expr' \) -print | xargs rm -f - -cd ./doc && sh ./clean.sh