blob: 9cc5ea4d5d076c02d74e0018388c92a0c0615528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# $NetBSD: prepare-import.sh,v 1.6 2018/12/29 16:27:12 kamil Exp $
#
# Checkout compiler_rt into dist.
# Run this script and check for additional files and directories to prune,
# only relevant content should be included.
set -e
cd dist
rm -rf .svn
rm -rf SDKs android cmake make third_party unittests www
rm -f .arcconfig .gitignore CMakeLists.txt Makefile
rm -rf lib/BlocksRuntime lib/dfsan lib/cfi
rm -rf lib/builtins/Darwin-excludes lib/builtins/macho_embedded
rm -rf test/BlocksRuntime test/asan test/cfi test/dfsan test/lit.* test/lsan
rm -rf test/msan test/sanitizer_common test/safestack test/tsan test/ubsan
rm -f lib/*/*/Makefile.mk lib/*/Makefile.mk */Makefile.mk
rm -f lib/*/CMakeLists.txt */CMakeLists.txt
rm -f lib/builtins/apple_versioning.c lib/lit.common.*
cd ..
find dist -type d -delete 2> /dev/null
|