1#!/bin/sh
2# $NetBSD: prepare-import.sh,v 1.4 2014/05/16 00:08:17 joerg Exp $
3#
4# Checkout compiler_rt into dist.
5# Run this script and check for additional files and directories to prune,
6# only relevant content should be included.
7
8set -e
9
10cd dist
11rm -rf .svn
12rm -rf SDKs android cmake include make third_party unittests www
13rm -f .arcconfig .gitignore CMakeLists.txt Makefile
14rm -rf lib/BlocksRuntime lib/asan lib/dfsan lib/interception lib/lsan
15rm -rf lib/msan lib/msandr lib/sanitizer_common lib/tsan lib/ubsan
16rm -rf test/BlocksRuntime test/asan test/dfsan test/lit.* test/lsan test/msan test/sanitizer_common test/tsan test/ubsan
17rm -f lib/*/*/Makefile.mk lib/*/Makefile.mk */Makefile.mk
18rm -f lib/*/CMakeLists.txt */CMakeLists.txt
19rm -f lib/builtins/apple_versioning.c lib/lit.common.*
20