mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
28 lines
966 B
Bash
Executable File
28 lines
966 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Using sparse checkout for llvm-project"
|
|
|
|
FILES_TO_CHECKOUT=$(git rev-parse --git-dir)/info/sparse-checkout
|
|
echo '/*' > $FILES_TO_CHECKOUT
|
|
echo '!/*/*' >> $FILES_TO_CHECKOUT
|
|
echo '/llvm/*' >> $FILES_TO_CHECKOUT
|
|
echo '!/llvm/*/*' >> $FILES_TO_CHECKOUT
|
|
echo '/llvm/cmake/*' >> $FILES_TO_CHECKOUT
|
|
echo '/llvm/projects/*' >> $FILES_TO_CHECKOUT
|
|
echo '/llvm/include/*' >> $FILES_TO_CHECKOUT
|
|
echo '/llvm/lib/*' >> $FILES_TO_CHECKOUT
|
|
echo '/llvm/utils/TableGen/*' >> $FILES_TO_CHECKOUT
|
|
echo '/libcxxabi/*' >> $FILES_TO_CHECKOUT
|
|
echo '!/libcxxabi/test/*' >> $FILES_TO_CHECKOUT
|
|
echo '/libcxx/*' >> $FILES_TO_CHECKOUT
|
|
echo '!/libcxx/test/*' >> $FILES_TO_CHECKOUT
|
|
echo '/libunwind/*' >> $FILES_TO_CHECKOUT
|
|
echo '!/libunwind/test/*' >> $FILES_TO_CHECKOUT
|
|
echo '/compiler-rt/*' >> $FILES_TO_CHECKOUT
|
|
echo '!/compiler-rt/test/*' >> $FILES_TO_CHECKOUT
|
|
echo '/cmake/*' >> $FILES_TO_CHECKOUT
|
|
|
|
git config core.sparsecheckout true
|
|
git checkout $1
|
|
git read-tree -mu HEAD
|