-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-files
executable file
·35 lines (25 loc) · 926 Bytes
/
update-files
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
34
35
#!/usr/bin/env bash
out="../tcmalloc_files.cmake"
cd tcmalloc || exit 1;
true > "$out"
{
echo "set(TCMALLOC_FILES"
find ./tcmalloc -maxdepth 1 -regex ".*\.\(cc\|h\)" \
| sort | grep -v -E "mock_|_test|_fuzz|_benchmark|profile_marshaler.cc"
echo -e ")\n\n"
echo "set(TCMALLOC_TEST_FILES"
find ./tcmalloc -maxdepth 1 -regex ".*\.\(cc\|h\)" \
| sort | grep -E "mock_|_test|_fuzz|_benchmark|profile_marshaler.cc"
echo -e ")\n\n"
echo "set(TCMALLOC_INTERNAL_FILES"
find ./tcmalloc/internal -maxdepth 1 -regex ".*\.\(cc\|h\)" \
| sort | grep -v -E "_test|_fuzz|_benchmark|profile_builder.cc"
echo -e ")\n\n"
echo "set(TCMALLOC_INTERNAL_TEST_FILES"
find ./tcmalloc/internal -maxdepth 1 -regex ".*\.\(cc\|h\)" \
| sort | grep -E "_test|_fuzz|_benchmark|profile_builder.cc"
echo -e ")\n\n"
echo "set(TCMALLOC_TESTING_FILES"
find ./tcmalloc/testing -maxdepth 1 -regex ".*\.\(cc\|h\)" | sort
echo ")"
} >> $out