Home | History | Annotate | Line # | Download | only in compiler_rt
      1 #!/bin/sh
      2 # $NetBSD: prepare-import.sh,v 1.6 2018/12/29 16:27:12 kamil 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 make third_party unittests www
     13 rm -f .arcconfig .gitignore CMakeLists.txt Makefile
     14 rm -rf lib/BlocksRuntime lib/dfsan lib/cfi
     15 rm -rf  lib/builtins/Darwin-excludes lib/builtins/macho_embedded
     16 rm -rf test/BlocksRuntime test/asan test/cfi test/dfsan test/lit.* test/lsan
     17 rm -rf test/msan test/sanitizer_common test/safestack test/tsan test/ubsan
     18 rm -f lib/*/*/Makefile.mk lib/*/Makefile.mk */Makefile.mk
     19 rm -f lib/*/CMakeLists.txt */CMakeLists.txt
     20 rm -f lib/builtins/apple_versioning.c lib/lit.common.*
     21 cd ..
     22 find dist -type d -delete 2> /dev/null
     23