diff options
author | Tim Kientzle <kientzle@gmail.com> | 2011-03-14 00:45:46 -0400 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2011-03-14 00:45:46 -0400 |
commit | b4ca4f0ad4f59d4c4b4f721701e046dcf5ed05bb (patch) | |
tree | 74b055b5534d1e61a58ad675fb9a73ff0280129f /build/clean.sh | |
parent | d54cc6197f5ff32bfe71472d17732f0bbbf6f734 (diff) | |
download | libarchive-b4ca4f0ad4f59d4c4b4f721701e046dcf5ed05bb.tar.gz |
Inspired by Issue 145: Split the old build/autogen.sh script by
moving the release-verification issues into build/makerelease.sh.
SVN-Revision: 3012
Diffstat (limited to 'build/clean.sh')
-rwxr-xr-x | build/clean.sh | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/build/clean.sh b/build/clean.sh index c85eee50..9e7e7998 100755 --- a/build/clean.sh +++ b/build/clean.sh @@ -1,19 +1,16 @@ #!/bin/sh +# +# Attempt to remove as many generated files as we can. +# Ideally, a well-used development sandbox would look like +# a pristine checkout after running this script. +# + if [ \! -f build/version ]; then echo 'Must run the clean script from the top-level dir of the libarchive distribution' 1>&2 exit 1 fi -# -# The automake-generated 'maintainer-clean' target does clean up a -# lot. If that fails, try plain 'clean' in case we're using the cmake -# or other makefile. But don't worry if we can't... -# -if [ -e Makefile ]; then - make maintainer-clean || make clean || true -fi - # If we're on BSD, blow away the build dir under /usr/obj rm -rf /usr/obj`pwd` @@ -34,9 +31,19 @@ find . -name '.depend' | xargs rm -f find . -name '.deps' | xargs rm -rf find . -name '.dirstamp' | xargs rm -f find . -name '.libs' | xargs rm -rf +find . -name 'CMakeFiles' | xargs rm -rf +find . -name 'cmake_install.cmake' | xargs rm -f +find . -name 'CTestTestfile.cmake' | xargs rm -f +rm -rf Testing rm -rf autom4te.cache +rm -rf bin +rm -rf cmake.tmp +rm -rf libarchive/Testing +rm -f CMakeCache.txt +rm -f DartConfiguration.tcl +rm -f Makefile rm -f Makefile.in rm -f aclocal.m4 rm -f bsdcpio @@ -62,7 +69,9 @@ rm -f config.log rm -f config.status rm -f configure rm -f cpio/*.1.gz +rm -f cpio/Makefile rm -f cpio/bsdcpio +rm -f cpio/test/Makefile rm -f cpio/test/bsdcpio_test rm -f cpio/test/list.h rm -f doc/html/* @@ -71,13 +80,17 @@ rm -f doc/pdf/* rm -f doc/text/* rm -f doc/wiki/* rm -f libarchive/*.[35].gz +rm -f libarchive/Makefile rm -f libarchive/libarchive.so* +rm -f libarchive/test/Makefile rm -f libarchive/test/libarchive_test rm -f libarchive/test/list.h rm -f libarchive_test rm -f libtool rm -f stamp-h1 rm -f tar/*.1.gz +rm -f tar/Makefile rm -f tar/bsdtar +rm -f tar/test/Makefile rm -f tar/test/bsdtar_test rm -f tar/test/list.h |