1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#!/bin/sh
if [ $# -gt 0 ]
then
BUILDDIR=$1
fi
BUILDDIR=${BUILDDIR-=build}
echo $PWD
rm -f filelist.txt
git ls-files | grep "\.[ch]pp" > filelist.txt
# Remove all CMakeFiles generated file
sed -i '/CMakeFiles/d' filelist.txt
# Remove all external file
sed -i '/^external/d' filelist.txt
# Remove all .cmake files
sed -i '/.cmake/d' filelist.txt
# Remove all .in files
sed -i '/.in$/d' filelist.txt
# Remove all clang files
sed -i '/^\.clang/d' filelist.txt
# Remove installed files
sed -i '/^install.*/d' filelist.txt
grep '\.cpp$' filelist.txt > filelist-c.txt
|