build/autoconf/clean-config.sh

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/autoconf/clean-config.sh	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +# clean-config.sh - Removes all files generated by mozilla configure.
    1.11 +#    Only removes files from the topsrcdir. To clean up an objdir,
    1.12 +#    simply remove the directory and start over.
    1.13 +#
    1.14 +# Usage:
    1.15 +#    1. cd <topsrcdir>
    1.16 +#    2. build/autoconf/clean-config.sh
    1.17 +#
    1.18 +# Send comments, improvements, bugs to slamm@netscape.com
    1.19 +
    1.20 +topsrcdir=`cd \`dirname $0\`/../..; pwd`
    1.21 +
    1.22 +if [ ! -f configure.in ]; then
    1.23 +  echo "clean-config.sh only cleans the source tree. To run," 2>&1
    1.24 +  echo "  cd $topsrcdir; build/autoconf/clean-config.sh" 2>&1
    1.25 +  echo "  (To clean a separate objdir, simple remove the directory.)" 2>&1
    1.26 +  exit 1
    1.27 +fi
    1.28 +
    1.29 +rm -fr \
    1.30 +    config-defs.h \
    1.31 +    config.cache \
    1.32 +    config.log \
    1.33 +    config.status \
    1.34 +    $NULL

mercurial