aboutsummaryrefslogtreecommitdiff
path: root/build/tools
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2018-09-26 13:09:03 -0700
committerDan Albert <danalbert@google.com>2018-09-26 13:09:03 -0700
commit64ebf226d63d8532bbbdf7ce25fc4abffcb10aeb (patch)
tree20d9f5059304b742cbd0a657606535904a3a197a /build/tools
parente59ed92fd8e60a5c8eb5d679808e5c29e500863f (diff)
downloadndk-64ebf226d63d8532bbbdf7ce25fc4abffcb10aeb.tar.gz
Remove dev-cleanup.sh.
Doesn't seem like we make any of the mistakes that made this necessary any more. Test: None of the things cleaned by the script exist any more except the tests. The test runner performs its own cleanups. Bug: None Change-Id: I89a4c4bebb5bc26761d4f7cc11afca3ab83e0e6e
Diffstat (limited to 'build/tools')
-rwxr-xr-xbuild/tools/dev-cleanup.sh90
1 files changed, 0 insertions, 90 deletions
diff --git a/build/tools/dev-cleanup.sh b/build/tools/dev-cleanup.sh
deleted file mode 100755
index a826a0647..000000000
--- a/build/tools/dev-cleanup.sh
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/bash
-#
-# Copyright (C) 2010 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# dev-cleanup.sh
-#
-# Remove any intermediate files (e.g. object files) from the development
-# directories.
-#
-. `dirname $0`/prebuilt-common.sh
-
-DIR=$ANDROID_NDK_ROOT
-
-if [ -f $DIR/RELEASE/TXT ]; then
- echo "ERROR: You cannot run this script in a release directory !"
- exit 1
-fi
-if [ ! -d $DIR/.git ] ; then
- echo "ERROR: You must call this script in a development directory !"
- exit 1
-fi
-
-# Remove generated directories
-rm -rf $DIR/platforms
-rm -rf $DIR/prebuilt
-
-# Remove prebuilt binaries
-rm -rf $DIR/$STLPORT_SUBDIR/libs
-rm -rf $DIR/$GABIXX_SUBDIR/libs
-for VERSION in $DEFAULT_GCC_VERSION_LIST; do
- rm -rf $DIR/$GNUSTL_SUBDIR/$VERSION
-done
-rm -rf $DIR/$COMPILER_RT_SUBDIR/libs
-rm -rf $DIR/$GCCUNWIND_SUBDIR/libs
-rm -rf $DIR/$LIBCXX_SUBDIR/libs
-rm -rf $DIR/$SUPPORT_SUBDIR/libs
-
-clean_dir ()
-{
- if [ -d "$1" ] ; then
- echo "rm -rf $1"
- rm -rf $1
- fi
-}
-
-clean_file ()
-{
- if [ -f "$1" ] ; then
- echo "rm -f $1"
- rm -f $1
- fi
-}
-
-cleanup_project ()
-{
- clean_dir $1/obj
- clean_dir $1/libs
- clean_dir $1/bin
- clean_dir $1/gen
- clean_file $1/build.xml
- clean_file $1/local.properties
-}
-
-# Cleanup the tests
-DIR=$ANDROID_NDK_ROOT
-for PROJECT in $DIR/tests/build/*; do
- cleanup_project $PROJECT
-done
-for PROJECT in $DIR/tests/device/*; do
- cleanup_project $PROJECT
-done
-
-# Cleanup development/ndk
-DIR=`dirname $ANDROID_NDK_ROOT`/development/ndk
-if [ ! -d $DIR ] ; then
- echo "WARNING: Development directory missing: $DIR"
- exit 0
-fi