michael@0: #!/bin/sh michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # clean-config.sh - Removes all files generated by mozilla configure. michael@0: # Only removes files from the topsrcdir. To clean up an objdir, michael@0: # simply remove the directory and start over. michael@0: # michael@0: # Usage: michael@0: # 1. cd michael@0: # 2. build/autoconf/clean-config.sh michael@0: # michael@0: # Send comments, improvements, bugs to slamm@netscape.com michael@0: michael@0: topsrcdir=`cd \`dirname $0\`/../..; pwd` michael@0: michael@0: if [ ! -f configure.in ]; then michael@0: echo "clean-config.sh only cleans the source tree. To run," 2>&1 michael@0: echo " cd $topsrcdir; build/autoconf/clean-config.sh" 2>&1 michael@0: echo " (To clean a separate objdir, simple remove the directory.)" 2>&1 michael@0: exit 1 michael@0: fi michael@0: michael@0: rm -fr \ michael@0: config-defs.h \ michael@0: config.cache \ michael@0: config.log \ michael@0: config.status \ michael@0: $NULL