1 #!/bin/sh 2 # $NetBSD: prepare-import.sh,v 1.4.8.1 2016/03/19 11:30:26 skrll 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 8 set -e 9 10 cd dist 11 rm -rf .svn 12 rm -rf SDKs android cmake include make third_party unittests www 13 rm -f .arcconfig .gitignore CMakeLists.txt Makefile 14 rm -rf lib/BlocksRuntime lib/asan lib/dfsan lib/interception lib/lsan lib/cfi 15 rm -rf lib/msan lib/msandr lib/sanitizer_common lib/safestack lib/tsan lib/ubsan 16 rm -rf lib/builtins/Darwin-excludes lib/builtins/macho_embedded 17 rm -rf test/BlocksRuntime test/asan test/cfi test/dfsan test/lit.* test/lsan 18 rm -rf test/msan test/sanitizer_common test/safestack test/tsan test/ubsan 19 rm -f lib/*/*/Makefile.mk lib/*/Makefile.mk */Makefile.mk 20 rm -f lib/*/CMakeLists.txt */CMakeLists.txt 21 rm -f lib/builtins/apple_versioning.c lib/lit.common.* 22 cd .. 23 find dist -type d -delete 2> /dev/null 24