aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxx/import
blob: f6311f61064a1be8c807b1d52dfbcd7a49532c58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e 
 
rev=968e2739 
output_dir="libcxx-r$rev"
if [ -z $1 ] ; then 
    git clone https://github.com/llvm/llvm-project.git --no-checkout "$output_dir/tmp" 
else 
    git clone --local --no-checkout $1 "$output_dir/tmp" 
fi 
cd "$output_dir/tmp" 
git checkout "$rev" 
cp -R libcxx/include ../include 
cp -R libcxx/src ../src 
cp libcxx/.clang-format ../.clang-format 
cp libcxx/CREDITS.TXT ../CREDITS.TXT 
cp libcxx/LICENSE.TXT ../LICENSE.TXT 
cd .. 
rm -rf tmp 
rm src/CMakeLists.txt include/CMakeLists.txt 

# Fix tabs and trailing spaces
find -type f | xargs sed -e 's/\t/    /g' -e 's/ *$//' -i